Enable frame-mode under Hyprland

This commit is contained in:
2026-02-04 02:48:55 -08:00
parent 3a405c0520
commit 98c85c5727

View File

@@ -1117,7 +1117,15 @@ I keep it around just in case I need it.
*** frame-mode
#+BEGIN_SRC emacs-lisp
(defvar imalison:use-frame-mode
(s-contains? "xmonad" (shell-command-to-string "wmctrl -m")))
(let ((xdg-current (downcase (or (getenv "XDG_CURRENT_DESKTOP") "")))
(xdg-session (downcase (or (getenv "XDG_SESSION_DESKTOP") "")))
(desktop-session (downcase (or (getenv "DESKTOP_SESSION") ""))))
(or (getenv "HYPRLAND_INSTANCE_SIGNATURE")
(s-contains? "hyprland" xdg-current)
(s-contains? "hyprland" xdg-session)
(s-contains? "hyprland" desktop-session)
(and (executable-find "wmctrl")
(s-contains? "xmonad" (shell-command-to-string "wmctrl -m"))))))
(use-package frame-mode
:if imalison:use-frame-mode