Simple question about Dark Theme in Gnome — can I program the switch?

I’m using the Manjaro-flavored Gnome-flavored Manjaro Gnome — I’m having a hard time sorting the right way to say this so I’ve put everything… I mean I changed nothing to the Gnome settings after installing Manjaro from the official Gnome ISO.

Anyway, I’ve got this nice “Dark Theme” button in the top right drawer menu. It works perfectly.
However I would like to either:

  • find a way to program dark theme for, say, from 21:00 to 6:00;
  • or a way to trigger it from the command line, because then I could create one or two cron jobs that would automate this for me.

Is anyone aware a way to achieve one or the other? I’ve looked everywhere in Settings, Tweaks and Extensions and I didn’t find anything. I also tried using some code but I can’t really do more than change the GTK theme, which is only a part of what the button does.

Thanks!

Hi @ash13,

Please see

https://askubuntu.com/a/1297496

and

2 Likes

Thanks. I managed to miss this exxtension somehow… It’s perfect. Marked as solved!

Yin-Yang. Can also do custom scripts and switch sunset based.

1 Like

I used to use Yin-Yang on KDE, so it also works on Gnome?

Anyway, the extension mentioned above covers what I need, so Yin-Yang would be overkill in my case anyway. Thanks for the suggestion though!

Does. “Auto Night-mode for Linux, it supports popular Desktops like KDE, GNOME, Budgie and also themes your favourite editors like VSCode or Atom.”

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.