From: "Samuel Banya" <sbanya@fastmail.com>
To: "Emanuel Berg" <help-gnu-emacs@gnu.org>
Subject: Re: Advice for changing-theme-function for GNU/Linux system
Date: Mon, 18 Jul 2022 18:47:02 -0400 [thread overview]
Message-ID: <0b420374-e32d-4585-981b-a7387a1fc0bc@www.fastmail.com> (raw)
In-Reply-To: <87o7xnd545.fsf@jonas-damm.de>
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
>
>
prev parent reply other threads:[~2022-07-18 22:47 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
2022-07-18 9:28 ` Yuri Khan
2022-07-18 10:36 ` Jonas Damm
2022-07-18 22:47 ` Samuel Banya [this message]
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=0b420374-e32d-4585-981b-a7387a1fc0bc@www.fastmail.com \
--to=sbanya@fastmail.com \
--cc=help-gnu-emacs@gnu.org \
/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).