[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Advice for changing-theme-function for GNU/Linux system
From: |
Samuel Banya |
Subject: |
Re: Advice for changing-theme-function for GNU/Linux system |
Date: |
Mon, 18 Jul 2022 18:47:02 -0400 |
User-agent: |
Cyrus-JMAP/3.7.0-alpha0-755-g3e1da8b93f-fm-20220708.002-g3e1da8b9 |
One thing I can think of is to base it upon the '~/.Xresources' file itself:
* https://github.com/martenlienen/xresources-theme
Or just use 'pywal':
* https://github.com/dylanaraps/pywal
Sincerely,
Sam
On Sun, Jul 17, 2022, at 1:15 PM, Jonas Damm wrote:
> Hi,
>
> 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. How would this be done? Do I need to call a
> shell command with "sed", or can emacs to this natively by opening that
> file, finding and replacing the String?
>
> Thanks for any Ideas,
> Jonas
>
>