From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Samuel Banya" Newsgroups: gmane.emacs.help Subject: Re: Advice for changing-theme-function for GNU/Linux system Date: Mon, 18 Jul 2022 18:47:02 -0400 Message-ID: <0b420374-e32d-4585-981b-a7387a1fc0bc@www.fastmail.com> References: <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="26957"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Cyrus-JMAP/3.7.0-alpha0-755-g3e1da8b93f-fm-20220708.002-g3e1da8b9 To: "Emanuel Berg" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 19 00:48:30 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 1oDZXR-0006k0-Rl for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 19 Jul 2022 00:48:29 +0200 Original-Received: from localhost ([::1]:52160 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oDZXQ-0007Uv-F1 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 18 Jul 2022 18:48:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39454) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDZWU-0007Uf-02 for help-gnu-emacs@gnu.org; Mon, 18 Jul 2022 18:47:30 -0400 Original-Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:55513) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDZWR-0003AJ-SZ for help-gnu-emacs@gnu.org; Mon, 18 Jul 2022 18:47:29 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 1F26732006F2 for ; Mon, 18 Jul 2022 18:47:24 -0400 (EDT) Original-Received: from imap50 ([10.202.2.100]) by compute5.internal (MEProxy); Mon, 18 Jul 2022 18:47:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.com; h= cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; t=1658184443; x=1658270843; bh=t8xCEzeyh2 1WMcm5xoKHQqQ5iHZtLBva/H0wLEzBwns=; b=UaRHoZX3cKzyRMHJXIhDRLOgd/ ukjwr7GSEJbzCEdKee4fcAHLJTCBvUvnuHhb6nRyvJuTLu3bg5FCrDxoFT0u1ICy hrNsA6XlRaB4bTuQjME4VI0h899puVsrhA1LlD+8f4uJ7s3Qud3T9OAecid7YbD2 571O7jixqu724BAsePF3B1ARuK2LBkJpFkBTLs8WfqmgD8EHb/p/t/XhIUCyFfgh 9zy85RD9aiG9odVHECoij9V5miw/20/O1bFzf4zlOft+Td+qpsZnTMrcn5OWWQ0j dTyiZLFKZLxEH2pQlvukggzm8M5gP8ONI/3FTeyt2uK17CLH8xO+wwctj7gA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1658184443; x=1658270843; bh=t8xCEzeyh21WMcm5xoKHQqQ5iHZt LBva/H0wLEzBwns=; b=LHttTH5HDER4rlvLcmuQXTNTo4YUaUpFgI5V+OSk7arZ 7f7kWMnPdUUI4Y2jVI4a8epJpKV9AQXnQEOYJKfHF4lemtRAQhGcIAlkafS4SSOj PIvORuZtWh81yLR9OdvwnJdquNHk4W63VxVCFm4flD98e7ddr2itzYreYoMsLNYv Y+qD5G7SD9H2JrSjzo4A2I67zy2fdP71eVhsP7F/BFFRnlxt0D6qb9YXzmQv8kA1 G1UGcwkYr17k8vuLIk3DB8s7GsaKiVdF2RNGpMGWltnO09+mMtsAMnA3wGjQSNY2 MUL1lG7yvDXq9txSNs2JLfX+o6ZUOYw8irtaugQz/w== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrudekledgudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsegrtd erreerredtnecuhfhrohhmpedfufgrmhhuvghluceurghnhigrfdcuoehssggrnhihrges fhgrshhtmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpeeuudekieevgefhleeile evheefieevffetudetudejhfejffdviefhkeethfeiheenucffohhmrghinhepghhithhh uhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrh homhepshgsrghnhigrsehfrghsthhmrghilhdrtghomh X-ME-Proxy: Feedback-ID: ib97947f6:Fastmail Original-Received: by mailuser.nyi.internal (Postfix, from userid 501) id 666A8170007E; Mon, 18 Jul 2022 18:47:23 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface In-Reply-To: <87o7xnd545.fsf@jonas-damm.de> Received-SPF: pass client-ip=64.147.123.25; envelope-from=sbanya@fastmail.com; helo=wout2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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:138520 Archived-At: 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 > >