summaryrefslogtreecommitdiffhomepage
path: root/init.el
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2025-09-17 21:38:09 +0100
committerjao <jao@gnu.org>2025-09-17 21:38:09 +0100
commit0adb2b31e4a08906888cb10c03769f261cb4a125 (patch)
treed829669470279ed10d68fbd63a6524dd157b06f7 /init.el
parenteecb00440d7ab9723ee30f8f4ff77e8989f5e8ff (diff)
downloadelibs-0adb2b31e4a08906888cb10c03769f261cb4a125.tar.gz
elibs-0adb2b31e4a08906888cb10c03769f261cb4a125.tar.bz2
jao-custom-x11
Diffstat (limited to 'init.el')
-rw-r--r--init.el19
1 files changed, 18 insertions, 1 deletions
diff --git a/init.el b/init.el
index 8660ed9..0ca0161 100644
--- a/init.el
+++ b/init.el
@@ -1656,7 +1656,24 @@
;;; Graphical window system
-(jao-when-linux (require 'jao-custom-window-system))
+(defvar jao-exwm-enabled nil)
+(defun jao-exwm-enabled-p () jao-exwm-enabled)
+
+(defvar jao-xmonad-enabled
+ (jao-when-linux (string= "xmonad" (or (getenv "wm") ""))))
+(defun jao-xmonad-enabled-p () jao-xmonad-enabled)
+
+(defvar jao-wayland-enabled
+ (jao-when-linux (string= "wayland" (or (getenv "XDG_SESSION_TYPE") ""))))
+
+(defvar jao-river-enabled
+ (jao-when-linux (jao-shell-running-p "river")))
+
+(jao-when-darwin
+ (defun jao-wayland-enabled-p () nil)
+ (defun jao-river-enabled-p () nil))
+
+(jao-when-linux (require 'jao-custom-x11))
;;; Global transients
(defun jao-list-packages ()