From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jonas Damm Newsgroups: gmane.emacs.help Subject: Advice for changing-theme-function for GNU/Linux system Date: Sun, 17 Jul 2022 19:15:24 +0200 Message-ID: <87o7xnd545.fsf@jonas-damm.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39337"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.8.3; emacs 28.1.90 To: Help Gnu Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 17 19:27:57 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oD83g-000A4Q-Il for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 17 Jul 2022 19:27:56 +0200 Original-Received: from localhost ([::1]:46664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oD83f-0005Hu-0U for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 17 Jul 2022 13:27:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41060) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oD80u-0003i9-Gd for help-gnu-emacs@gnu.org; Sun, 17 Jul 2022 13:25:04 -0400 Original-Received: from dd15330.kasserver.com ([85.13.136.159]:44040) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oD80f-0005uD-2C for help-gnu-emacs@gnu.org; Sun, 17 Jul 2022 13:25:04 -0400 Original-Received: from x220t (unknown [185.220.70.69]) by dd15330.kasserver.com (Postfix) with ESMTPSA id E3F4775005DC for ; Sun, 17 Jul 2022 19:24:42 +0200 (CEST) X-Spamd-Bar: - Received-SPF: none client-ip=85.13.136.159; envelope-from=emails@jonas-damm.de; helo=dd15330.kasserver.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:138515 Archived-At: 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