How to change the icons for all my hidden folder
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
How to change the icons for all my hidden folder
I would like my hidden folders to have a different appearance to my other folders. When i navigate to .icons/theme/places/scalable I see no filename for folder-hidden. So I create one and reload my theme in settings, but it does not change the appearance of my hidden folders. Is there a way to change the appearance of all hidden folders in the icon theme?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
- sebastjava
- Level 5
- Posts: 708
- Joined: Wed Jun 28, 2017 8:01 pm
- Location: Montréal, Québec, Canada
- Contact:
Re: folder-hidden
Hmm. I don't know how to do this. But i have an alternate cheap idea. You could just add an emblem to every hidden folder.
I tried to select all my hidden folders in Nemo to go to File > Properties > Emblems... But this doesn't work. You can only add emblems to files by selecting them one-by-one. It would have been so easy. Too bad, i searched for some command to do this and found that: viewtopic.php?t=308032
I modified these commands for bulk work this way:
TO DO:
Reload Nemo to see the results: Ctrl+R
TO UNDO:
Reload Nemo to see the results: Ctrl+R
I tested this with the
I tried to select all my hidden folders in Nemo to go to File > Properties > Emblems... But this doesn't work. You can only add emblems to files by selecting them one-by-one. It would have been so easy. Too bad, i searched for some command to do this and found that: viewtopic.php?t=308032
I modified these commands for bulk work this way:
TO DO:
Code: Select all
for folder in $HOME/.??*/
do
gio set -t stringv "$folder" metadata::emblems emblem-system
done
TO UNDO:
Code: Select all
for folder in $HOME/.??*/
do
gio set -t unset "$folder" metadata::emblems
done
I tested this with the
emblem-system
but you can replace this with your preferred one. Just select one file and go to File > Properties > Emblems to see them all. Add the "emblem-" prefix and use lowercase letters only. Examples: emblem-default
, emblem-important
, etc.
Last edited by sebastjava on Tue May 24, 2022 9:25 pm, edited 2 times in total.
- sebastjava
- Level 5
- Posts: 708
- Joined: Wed Jun 28, 2017 8:01 pm
- Location: Montréal, Québec, Canada
- Contact:
Re: folder-hidden
That was just a quick and cheap alternate answer but i think you could also use this same
Of course, you would also have to create this custom
gio
command to change the icons to folder-hidden
, getting exactly what you were asking in the first place. But i don't know how to do this exactly. You would need to do some more web search... Try my first quick answer first, and see if this fits. I have also included a quick "undo" anyway...Of course, you would also have to create this custom
folder-hidden
icons before, but you said you already have done that.- smurphos
- Level 18
- Posts: 8498
- Joined: Fri Sep 05, 2014 12:18 am
- Location: Irish Brit in Portugal
- Contact:
Re: folder-hidden
If this folder-hidden isn't in the current icon theme or it's inherits (replace /path/to/ with the actual path)sebastjava wrote: ⤴Tue May 24, 2022 3:54 pm That was just a quick and cheap alternate answer but i think you could also use this samegio
command to change the icons tofolder-hidden
, getting exactly what you were asking in the first place. But i don't know how to do this exactly.
Code: Select all
for folder in $HOME/.??*/
do
gio set -t stringv "$folder" metadata::custom-icon "file:///path/to/folder-hidden"
done
Code: Select all
for folder in $HOME/.??*/
do
gio set -t stringv "$folder" metadata::custom-icon-name folder-hidden
done
Last edited by smurphos on Thu May 26, 2022 1:04 am, edited 1 time in total.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
- sebastjava
- Level 5
- Posts: 708
- Joined: Wed Jun 28, 2017 8:01 pm
- Location: Montréal, Québec, Canada
- Contact:
Re: How to change the icons for all my hidden folders
You may want to start with a simple GUI test on a single folder before executing this
DO:
for
loop...DO:
- Press Ctrl-H to toggle between show/hide hidden files and folders
- Select a single hidden folder such as
~/.config
- Open File > Properties
- Click on the icon in this dialog box
- Select your custom icon
- Select a single hidden folder such as
~/.config
- Open File > Properties
- Click on the icon in this dialog box
- Click on the Revert button
- sebastjava
- Level 5
- Posts: 708
- Joined: Wed Jun 28, 2017 8:01 pm
- Location: Montréal, Québec, Canada
- Contact:
Re: How to change the icons for all my hidden folder
I checked all this again. I typed commands such as
Then i did some tests on my
So, i just wanted to add two more things here...
PRIMO: All these are standard methods
I can confirm the methods described here above by smurphos for
With just one big difference: the command-line method lets you change all your hidden folder icons all at once, in just a split second, instead of doing them one-by-one with the GUI. As said before.
SECUNDO: You can always UNDO if needed
You probably have already figured this out from these previous posts, but, just in case, here are the "undo" methods. Use one of these two groups, depending on what you did before.
To undo all custom-icon :
Reload Nemo to see the results: Ctrl+R
—OR—
To undo all custom-icon-name :
Reload Nemo to see the results: Ctrl+R
CONCLUSION
Feel free to try whatever methods listed above, as they are all "standard" methods, and there is always a quick and easy "undo" for all of them anyway...
gio help
, gio help set
, and, much more interesting, man gio
. In man gio
i looked at the set
sub-command section.Then i did some tests on my
~/.cache
folder, using both the GUI methods and the command-line gio methods, looking at the results on gio info $HOME/.cache
for each test i did.So, i just wanted to add two more things here...
PRIMO: All these are standard methods
I can confirm the methods described here above by smurphos for
custom-icon
or custom-icon-name
are the exact equivalent as the "standard" GUI method described on my latest post here above. (viewtopic.php?p=2180223#p2180223 compared to viewtopic.php?p=2180464#p2180464)With just one big difference: the command-line method lets you change all your hidden folder icons all at once, in just a split second, instead of doing them one-by-one with the GUI. As said before.
SECUNDO: You can always UNDO if needed
You probably have already figured this out from these previous posts, but, just in case, here are the "undo" methods. Use one of these two groups, depending on what you did before.
To undo all custom-icon :
Code: Select all
for folder in $HOME/.??*/
do
gio set -t unset "$folder" metadata::custom-icon
done
—OR—
To undo all custom-icon-name :
Code: Select all
for folder in $HOME/.??*/
do
gio set -t unset "$folder" metadata::custom-icon-name
done
CONCLUSION
Feel free to try whatever methods listed above, as they are all "standard" methods, and there is always a quick and easy "undo" for all of them anyway...
Re: How to change the icons for all my hidden folder
All helpful, thanks very much. I was hoping there might be a way to do it within the actual icon theme and am a little surprised there isn't. On a side note I notice dolphin file browser makes hidden folders a lighter shade - it's a nice touch.