emacs: make the gnome-accent-theme-switcher only load in GNOME

This commit is contained in:
Protesilaos 2026-07-17 14:20:51 +03:00
parent 36844d4ba6
commit d539d16e41
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA
2 changed files with 12 additions and 12 deletions

View file

@ -132,12 +132,12 @@
(define-key global-map (kbd "C-c p") #'cursory-set-preset)))
;;; GNOME accent theme switcher
(prot-emacs-configure
(prot-emacs-install
gnome-accent-theme-switcher
"https://github.com/protesilaos/gnome-accent-theme-switcher.git")
(when (and (null prot-emacs-load-theme-family)
(string= (getenv "DESKTOP_SESSION") "gnome"))
(when (and (null prot-emacs-load-theme-family)
(string= (getenv "DESKTOP_SESSION") "gnome"))
(prot-emacs-configure
(prot-emacs-install
gnome-accent-theme-switcher
"https://github.com/protesilaos/gnome-accent-theme-switcher.git")
(prot-emacs-keybind global-map
"<f5>" #'gnome-accent-theme-switcher-toggle-mode
"C-<f5>" #'gnome-accent-theme-switcher-change-accent

View file

@ -2316,12 +2316,12 @@ the GNOME desktop environment ([[#h:3f1a33e4-762e-4cf3-a0ae-4c2954d9cbb8][The =p
#+begin_src emacs-lisp :tangle "prot-emacs-modules/prot-emacs-theme.el"
;;; GNOME accent theme switcher
(prot-emacs-configure
(prot-emacs-install
gnome-accent-theme-switcher
"https://github.com/protesilaos/gnome-accent-theme-switcher.git")
(when (and (null prot-emacs-load-theme-family)
(string= (getenv "DESKTOP_SESSION") "gnome"))
(when (and (null prot-emacs-load-theme-family)
(string= (getenv "DESKTOP_SESSION") "gnome"))
(prot-emacs-configure
(prot-emacs-install
gnome-accent-theme-switcher
"https://github.com/protesilaos/gnome-accent-theme-switcher.git")
(prot-emacs-keybind global-map
"<f5>" #'gnome-accent-theme-switcher-toggle-mode
"C-<f5>" #'gnome-accent-theme-switcher-change-accent