From 8d60f5924d30750cdb0e62176fcc583276ba4251 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sat, 3 Aug 2024 23:51:59 +0400 Subject: [PATCH] exwm detection config --- config/emacs/emacs.org | 7 ++++++- modules/desktop/exwm/default.nix | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/config/emacs/emacs.org b/config/emacs/emacs.org index dbf90442..fe1178eb 100644 --- a/config/emacs/emacs.org +++ b/config/emacs/emacs.org @@ -1243,7 +1243,12 @@ Export and then view with emacs :) * EXWM I'm scared #+begin_src emacs-lisp + + (defvar is-exwm nil + "Toggle if EXWM is being used") + (when (eq system-type 'gnu/linux) + (if (is-exwm) (use-package exwm :config (set-frame-parameter nil 'alpha '(90 . 90)) @@ -1392,7 +1397,7 @@ I'm scared (desktop-environment-brightness-small-decrement "2%-") (desktop-environment-brightness-normal-increment "5%+") (desktop-environment-brightness-normal-decrement "5%-")) - ) + )) #+end_src * End #+begin_src elisp diff --git a/modules/desktop/exwm/default.nix b/modules/desktop/exwm/default.nix index 13ed0cc9..085d5956 100644 --- a/modules/desktop/exwm/default.nix +++ b/modules/desktop/exwm/default.nix @@ -48,6 +48,7 @@ in { # }))) # ''; extraConfig = pkgs.writeText "emacs-loadscript" '' + (setq is-exwm t) (exwm-init) ''; in