[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Advice for changing-theme-function for GNU/Linux system

From: Yuri Khan
Subject: Re: Advice for changing-theme-function for GNU/Linux system
Date: Mon, 18 Jul 2022 01:37:46 +0700

On Mon, 18 Jul 2022 at 00:27, Jonas Damm <> wrote:

> I wish to create my own function in emacs to switch my whole system from
> dark to light mode.
> I want to use the modus themes included in emacs, so i can toggle with
> modus-themes-toggle.
> However, I also want to change my systems GTK theme for other
> applications like Evince. So i have to change the file
> ~/.config/gtk-3.0/settings.ini and replace "Adwaita" with "Adwaita-dark"
> or the other way round.

And restart every running application, and hope they preserve their
state, because themes set via gtk-3.0/settings.ini only take effect on
application startup.

Alternatively, keep a settings daemon running. With one of these, you
can apply themes on the fly. If you’re using a desktop environment
such as GNOME, KDE or Xfce, you already have one. If not, Xfce’s
xfsettingsd is lightweight enough and can run without the whole DE.
(Start it on your session startup with an --sm-client-disable option.)
There is also something called Xsettingsd which is purportedly even
more lightweight.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]