From: Jonas Damm <emails@jonas-damm.de>
To: Yuri Khan <yuri.v.khan@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Advice for changing-theme-function for GNU/Linux system
Date: Mon, 18 Jul 2022 11:05:56 +0200 [thread overview]
Message-ID: <87tu7ebx67.fsf@jonas-damm.de> (raw)
In-Reply-To: <CAP_d_8WHkicNyvSD=XicLX3c+rPq3R4HwHY61hbVrYNhaDe=Qw@mail.gmail.com>
Thank you, that put me in the right direction.
I am having a little trouble though. I can successfully change the
Firefox-Theme, without restarting the application, which is awesome.
However my GTK applications like Evince do not change their theme. Not
even by restarting them.
I am running the xfsettingsd with the --sm-client-disable option and
then change the theme with this command:
xfconf-query -c xsettings -p /Net/ThemeName -s "Adwaita-dark"
Any Idea why that is?
Maybe I need the gnome-settings-daemon? But this one seems to have been
split into many small daemons, and i can't find documentation on how to
use them..
Thanks,
Jonas
Yuri Khan <yuri.v.khan@gmail.com> writes:
> On Mon, 18 Jul 2022 at 00:27, Jonas Damm <emails@jonas-damm.de> 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.
next prev parent reply other threads:[~2022-07-18 9:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-17 17:15 Advice for changing-theme-function for GNU/Linux system Jonas Damm
2022-07-17 18:37 ` Yuri Khan
2022-07-18 9:05 ` Jonas Damm [this message]
2022-07-18 9:28 ` Yuri Khan
2022-07-18 10:36 ` Jonas Damm
2022-07-18 22:47 ` Samuel Banya
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tu7ebx67.fsf@jonas-damm.de \
--to=emails@jonas-damm.de \
--cc=help-gnu-emacs@gnu.org \
--cc=yuri.v.khan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).