unity - Can I apply a different GTK3 theme from the main one to an individual application? - Ask Ubuntu
for example, can keep ambiance main theme assign elementary theme elementary's app?
you can use gtk environment variable gtk_theme=elementary
launch app elementary theme. example, running gtk_theme=elementary pantheon-files
launch elementary files app using elementary gtk theme.
to apply every time launch specific app, best option create custom .desktop file (launcher).
create custom .desktop file
- open file browser
- navigate
/usr/share/applications/
- copy launcher (highlight , ctrl+c) app want launch elementary theme
- navigate
~/.local/share/applications/
, paste launcher (ctrl+v) - right-click , open launcher text editor
- modify line starting
exec=
includeexec=env gtk_theme=elementary
, previous existing contents of line. (soexec=pantheon-files
becomeexec=env gtk_theme=elementary pantheon-files
) - save , close file
the next time launch app unity (or app launcher of choice) use elementary theme.
bonus: make work when using command line
you may want app launch elementary theme when launching command line. so:
- open terminal app
- type
alias pantheon-files="gtk_theme=elementary pantheon-files"
(replacingpantheon-files
desired app) - press enter
caveats:
- this not change window manager's theme elementary theme.
- this (by design) apply account, not root or else on machine.
- the theme names case-sensitive , should matched theme folder name.
sources:
- i'm elementary contributor ;)
- gtk+ 3 reference manual: running gtk+ applications
- set variable in .desktop file
Comments
Post a Comment