Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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: askubuntu.com/questions/91938/… –  l300lvl Apr 17 '13 at 6:16

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.