Change GTK icon theme for one program
Problem statement
I want one application to use a different icon theme than the other programs in my X11 desktop environment that uses GTK.
Solution
You can make a custom .config directory for this program, e.g., notification-daemon
.
mkdir -p ~/.config/custom-notification-daemon/gtk-3.0/ cat <<EOF >~/.config/custom-notification-daemon/gtk-3.0/settings.ini [Settings] gtk-icon-theme-name = HighContrast EOF
And then run your program:
XDG_CONFIG_HOME=~/.config/custom-notification-daemon notification-daemon &
I include the background command &
merely because this example program is a daemon that should not occupy the current shell/thread.
References
- Failed Internet search for gtk3 set theme with environment variable which led to:
- Ripped directly from gnome - GTK - Enable/set dark theme on a per-application basis - Unix & Linux Stack Exchange
Aside
Does using anything labeled HighContrast make me officially old?
Comments