diff options
| author | brustybee <bee@4d2.org> | 2026-03-11 13:48:40 +0530 |
|---|---|---|
| committer | brustybee <bee@4d2.org> | 2026-03-11 13:48:40 +0530 |
| commit | 83f0f303a95277171b5f0d059959af9f4116cdb1 (patch) | |
| tree | 483f5eb7b623290977154e367dc4cde9d72a5dc1 /common/modules/dwm | |
| parent | 6d8eec22cddf0be0c190fb06c88f9fd9e3838757 (diff) | |
add swaylock and swayidle and avoid x11 and wayland services clash
Diffstat (limited to 'common/modules/dwm')
| -rw-r--r-- | common/modules/dwm/default.nix | 39 |
1 files changed, 37 insertions, 2 deletions
diff --git a/common/modules/dwm/default.nix b/common/modules/dwm/default.nix index 4ce4b29..0236f1d 100644 --- a/common/modules/dwm/default.nix +++ b/common/modules/dwm/default.nix @@ -96,8 +96,19 @@ in dunst & clipcatd & - ${lib.optionalString (cfg.picom.enable) '' - systemctl --user restart picom.service + ${lib.optionalString (!cfg.picom.enable) '' + xrandr --output eDP --set TearFree on + ''} + + systemctl --user restart xidlehook.service + systemctl --user restart xautolock-session.service + systemctl --user restart xss-lock.service + systemctl --user restart clipcat.service + ${lib.optionalString (config.beeMods.mango.waybar) '' + systemctl --user stop waybar.service + ''} + ${lib.optionalString (config.beeMods.mango.enable) '' + systemctl --user stop swayidle.service ''} ''; }; @@ -151,6 +162,30 @@ in ]; }; + systemd.user.services.clipcat = { + Unit = { + ConditionEnvironment = [ "XDG_SESSION_TYPE=x11" ]; + }; + + }; + systemd.user.services.xidlehook = { + Unit = { + ConditionEnvironment = [ "XDG_SESSION_TYPE=x11" ]; + }; + }; + + systemd.user.services.xautolock-session = { + Unit = { + ConditionEnvironment = [ "XDG_SESSION_TYPE=x11" ]; + }; + }; + + systemd.user.services.xss-lock = { + Unit = { + ConditionEnvironment = [ "XDG_SESSION_TYPE=x11" ]; + }; + }; + xresources.extraConfig = lib.mkIf config.beeMods.matugen.enable '' #include "${config.xdg.configHome}/x11/matugen.Xresources" ''; |
