From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: Advice for changing-theme-function for GNU/Linux system Date: Mon, 18 Jul 2022 01:37:46 +0700 Message-ID: References: <87o7xnd545.fsf@jonas-damm.de> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7167"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Help Gnu Emacs To: Jonas Damm Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 17 20:38:50 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 1oD9AI-0001gD-MC for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 17 Jul 2022 20:38:50 +0200 Original-Received: from localhost ([::1]:42802 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oD9AH-0006oj-CN for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 17 Jul 2022 14:38:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51598) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oD99X-0006oC-Od for help-gnu-emacs@gnu.org; Sun, 17 Jul 2022 14:38:04 -0400 Original-Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:39552) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oD99W-0000ih-CV for help-gnu-emacs@gnu.org; Sun, 17 Jul 2022 14:38:03 -0400 Original-Received: by mail-wr1-x430.google.com with SMTP id f2so14201902wrr.6 for ; Sun, 17 Jul 2022 11:38:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=HcIVTWr3S3zUiI3KO3yLkiSL9U3/sItRkKLU8HHAU6U=; b=p/AFNHw4ZbPqpnyv21WunXuzKu11l+ePy1Z/ynx8u7mpdCNvyP5slthhI+Pr8MiTZB XuYGwREb0AARX767LETbvsCWv4ah05D6E1CPBzxDlbfD8eZJZpZRSx7VHIKHHAZCXjL6 aIH5+kMUrjYfmkJ67rndGvGnr0gc8m9foBhEmhzCOxf6HHdQ+db+QSybo5b292LGPqju rhW/7gwYddO7NWxWnhbz/zEAeqYfKAC0mn29i77V/bCqzF4WzhfPk3UZb2ZZIPpw8Fbv q6AmtxY5jBCtcvdR107DTRU1i6w8iN9nGm1z9w2L/zVTypTNDnCER5DRTJ3jg/LSJDkO lb3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=HcIVTWr3S3zUiI3KO3yLkiSL9U3/sItRkKLU8HHAU6U=; b=8JXyGe8jRlHeEg5MFeHqeM39U+18Uj2AOjMvBqiX44Bv//sOdbsNy0Z4lcvSUcUOUr KLkXdh0tCr0IJS6rfqJTLUfyZlot7drZ4N5on1NOIxXu6eaPfqPt0hZSfjvLgQSVijgr zhYT8MuCU+EC6Jlqn6Fb3aE1KXQT24tUdsI3oJ9kTyvkRGIuOrth5YAQ3LsJVg71ODDH ZvDNP3ZerbuPpoHQkVPrPl9je3DRR8K/lZwLl4yVWLPiwCX3MJBl3mS+ouGbZ+wWf31P HyurbIeEpIAMuJkeJ2F7SgF5JadAg5FACVnPTSJx23Fn87L/bhoBcO0EWQLPfDkYtlcq oe0g== X-Gm-Message-State: AJIora9gxwqNm+tC/xQwH+CLsqXhInl9bp69u4K0eo3yD6ckkTx/AKfQ kiOHl7mFFF+EOWpCdRvf9I8UMrnVR2IMgzMKvhM= X-Google-Smtp-Source: AGRyM1svmhRy7MhaHJbZi+i/2XHCMmJFRWl9ZEnLO41/+p/J1zL7u1hNriCyzqjRtV0YdpwSbvPnZjS5uSG3UGH4jUI= X-Received: by 2002:adf:d1e2:0:b0:21d:d40b:d816 with SMTP id g2-20020adfd1e2000000b0021dd40bd816mr9946588wrd.682.1658083078580; Sun, 17 Jul 2022 11:37:58 -0700 (PDT) In-Reply-To: <87o7xnd545.fsf@jonas-damm.de> Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=yurivkhan@gmail.com; helo=mail-wr1-x430.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-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:138516 Archived-At: On Mon, 18 Jul 2022 at 00:27, Jonas Damm 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=E2=80=99re using a desktop environment such as GNOME, KDE or Xfce, you already have one. If not, Xfce=E2=80=99s 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.