Usually pressing Alt+F2 and typing rt
will reload the theme defined in gnome-shell.css
.
But I want a command line to do that. With command line, one can easily reload the theme via a program when file is modified or exactly saved.
Is there any mean to do that please?
I happened across this specific question on my own journey to be able to reload theme from command so I could better test an extension I'm updating for 3.8.
I had the idea to try the loadTheme() function in place of lookingGlass.toggle() using the method I found here:
http://askubuntu.com/questions/91938/how-can-one-invoke-lg-looking-glass-from-a-command-line
– l300lvl Apr 17 '13 at 06:16rt
. I didn't need this to work via command specifically, just to reload a theme quickly to see my changes' effect. Opening gnome-tweak-tool and switching themes to something else and back worked for this use case. – Vasiliy Sharapov Oct 15 '15 at 22:41gsettings set org.gnome.shell.extensions.user-theme name <my-theme>
. – elboulangero Jun 08 '17 at 03:53