create folders with an icon  [Solved]

Any background image or other artwork submissions must include copyright information and explicit permission of the image's original creator to use the image. This includes a direct post of the image or links to a compiled image archive.
Message
Author
User avatar
Jerry3904
Administrator
Posts: 23274
Joined: Wed Jul 19, 2006 6:13 am

create folders with an icon

#1 Post by Jerry3904 »

Recent posts here and in our Facebook group got me thinking about this topic. I like to keep scripts in a dedicated folder and would like to come up with a icon-folder instead of a plain-Jane [=Americanism from 1912] one. More generally, it might be nice if we could make this easy for users to do who have other icons in mind (dogs, movies, etc.).

The basic steps seem clear enough:

--find the basic (Papirus?) folder icon in the required size
--find/create an icon to put on it (my choice is attached)
--add the desired icon to the basic folder icon
--(optional) save the new folder where it can be found by others

I can probably futz around for a week to try to do this, but thought I would first see what people who really know about this stuff might suggest.
You do not have the required permissions to view the files attached to this post.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
dolphin_oracle
Developer
Posts: 22350
Joined: Sun Dec 16, 2007 12:17 pm

Re: create folders with an icon

#2 Post by dolphin_oracle »

the trick isn't making an icon. its getting a folder to use it.

the easiest way is add a jpg called "folder.jpg" to the folder in question. any jpeg will work. its the same feature that is used to generate album art icons (typically cover.jpg).

thunar requies a thumbnailer to generate the the thumbnail that is added to cache. tumbler would be xfce's default. other file managers might not need a separate thumbnailer.
Image
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.

User avatar
Jerry3904
Administrator
Posts: 23274
Joined: Wed Jul 19, 2006 6:13 am

Re: create folders with an icon

#3 Post by Jerry3904 »

That's a good start, thanks.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
siamhie
Global Moderator
Posts: 3441
Joined: Fri Aug 20, 2021 5:45 pm

Re: create folders with an icon

#4 Post by siamhie »

Kind of like what I did with my .fluxbox folder? (I'm using Thunar)

folder_icon.png
You do not have the required permissions to view the files attached to this post.
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

User avatar
Jerry3904
Administrator
Posts: 23274
Joined: Wed Jul 19, 2006 6:13 am

Re: create folders with an icon

#5 Post by Jerry3904 »

Not what I was thinking of, but really nice! I'm looking in my case to have folders that match the default ones for Downloads, Documents, etc. with their small icon and color.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

User avatar
AVLinux
Posts: 3023
Joined: Wed Jul 15, 2020 1:15 am

Re: create folders with an icon

#6 Post by AVLinux »

Hi,

Interesting discussion! How does this differ from using folder Emblems? If I have a dedicated shared folder or a folder for executables I often use an Emblem..
shot-2024-10-07_15-29-03.jpg
You do not have the required permissions to view the files attached to this post.

User avatar
Jerry3904
Administrator
Posts: 23274
Joined: Wed Jul 19, 2006 6:13 am

Re: create folders with an icon

#7 Post by Jerry3904 »

It's just a different approach, and also very nice. I'm looking for a result that matches the ones we currently use by default (exx attached, on orange folders).
You do not have the required permissions to view the files attached to this post.
Production: 5.10, MX-23 Xfce, AMD FX-4130 Quad-Core, GeForce GT 630/PCIe/SSE2, 16 GB, SSD 120 GB, Data 1TB
Personal: Lenovo X1 Carbon with MX-23 Fluxbox
Other: Raspberry Pi 5 with MX-23 Xfce Raspberry Pi Respin

BV206
Posts: 505
Joined: Sat Mar 09, 2019 10:55 am

Re: create folders with an icon

#8 Post by BV206 »

I tried to change the icons of folders last year and gave up because I couldn't make it work the way I want.
viewtopic.php?t=77936

User avatar
AVLinux
Posts: 3023
Joined: Wed Jul 15, 2020 1:15 am

Re: create folders with an icon

#9 Post by AVLinux »

Ahhh, I see, understood!

Another approach to get the folders looking like the other XDG folders although much deeper in system-mojo is that I believe you can extend folder types in ~/.config/user-dirs.dirs. I would imagine this must require adding these new folder types to your selected Icon theme as well, so not impossible but pretty involved. Probably being good with SVG/Inkscape and then never changing your modified Icon theme would be a must... :frown:

Code: Select all

# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run.
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
# 
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"

BV206
Posts: 505
Joined: Sat Mar 09, 2019 10:55 am

Re: create folders with an icon

#10 Post by BV206 »

AVLinux wrote: Mon Oct 07, 2024 3:46 pm I believe you can extend folder types in ~/.config/user-dirs.dirs.
You can't. I tried that back when I tried to make a "Favorites" function.
If you add more folders to ~/.config/user-dirs.dirs they are ignored.
The XDG spec only recognizes Desktop, Documents, Downloads, Music, Pictures, Public, Templates, and Videos. All you can do is change the locations of those folders. I couldn't find a way around that or anybody that added other folders.
Last edited by BV206 on Mon Oct 07, 2024 3:58 pm, edited 1 time in total.

Post Reply

Return to “MX Art”