0

I found here :), I can set a particular GTK3 theme per-application basis : GTK - Enable/set dark theme on a per-application basis

Now I want to force :

  • A particular icon theme per-application basis
  • A particular window decorator per-application basis

The point is having a completely darked application (theme + icon special dark + window decoration)

Thanks for your help

edit:

For information I use cinnamon in linux mint 18.2

Further step about icon theme, i can fake it with the env variable XDG_DATA_DIRS :

  • First create dir icons,
  • Put your desired icon pack
  • Rename icon pack as current system icon pack
  • Add parent path of your freshly created icons dir into XDG_DATA_DIRS XDG_DATA_DIRS=/parent/of/iconsdir/:$XDG_DATA_DIRS
0

edit/ After searching and experimenting a bit, I found a way to partially do that, so i created an account here, to answer to my guest account question /edit


For particular icon set per-application basis :

Derived from Except some applications (like VLC) from using the current gtk3 theme

  • create any folder path/to/FOLDER
  • create a icons/ folder inside it
  • put your desired icon set folder in it and rename that folder with the name of current icon set

After that you can force the use of this icon set with :

XDG_DATA_DIRS=/path/to/FOLDER/:$XDG_DATA_DIRS <application>

For dark theme you can use breeze-dark icon set


Cinnamon use metacity border-decoration, this is in themes/metacity-1/ folder. I don't know how to customize it for a specific application. The XDG_DATA_DIRS hack above won't work.


So if you want custom theme and icons, you can write in a terminal :

GTK_THEME=Adwaita:dark XDG_DATA_DIRS=/path/to/FOLDER/:$XDG_DATA_DIRS <application>

And for launching app with these settings in application .desktop file :

Exec=sh -c "GTK_THEME=Adwaita:dark XDG_DATA_DIRS=/path/to/FOLDER/:$XDG_DATA_DIRS <application> %F"

  • An ugly way of doing it and not really a single override. – Bachsau Oct 21 '18 at 12:59
  • Yes I know, please show me the beautiful way to do this ;) – brouillon Oct 22 '18 at 13:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.