Knowledge Base

Preserving for the future: Shell scripts, AoC, and more

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.


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
gtk-icon-theme-name = HighContrast

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.


  1. Failed Internet search for gtk3 set theme with environment variable which led to:
  2. Ripped directly from gnome - GTK - Enable/set dark theme on a per-application basis - Unix & Linux Stack Exchange


Does using anything labeled HighContrast make me officially old?