Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 1 down vote accepted

This may be a bit late, but just for future reference:

gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval 'Main.loadTheme();'

(tested on 3.6/3.8)

share|improve this answer
Thanks. I was waiting for it for a long time. Is this new feature in Gnome 3.6 – jiyinyiyong Apr 17 '13 at 5:50
Actually this may work in as far back as 3.2, I'm not sure exactly when gdbus or these specific calls were implemented, but they werent very well documented or easy to understand. 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:… – l300lvl Apr 17 '13 at 6:16
This didn't work for me on 3.14, and neither did rt. 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:41

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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