From 2406455d4e248d2f535f45b05038edc85d1ffa0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20R=C3=B6ger?= Date: Fri, 1 Nov 2024 16:01:36 +0100 Subject: [PATCH] Home Gen407 @ 2024-11-01-16:01 --- modules/home/hyprland/config.nix | 2 +- modules/home/wlogout/wlogout.nix | 15 +-------------- 2 files changed, 2 insertions(+), 15 deletions(-) diff --git a/modules/home/hyprland/config.nix b/modules/home/hyprland/config.nix index 0795775..4b5cbe8 100644 --- a/modules/home/hyprland/config.nix +++ b/modules/home/hyprland/config.nix @@ -88,7 +88,7 @@ ", XF86MonBrightnessUp, exec, ${pkgs.brightnessctl}/bin/brightnessctl set +5%" ", XF86MonBrightnessDown, exec, ${pkgs.brightnessctl}/bin/brightnessctl set 5%-" "$mod, 9, exec, ${pkgs.hyprlock}/bin/hyprlock" - "$mod, 0, exec, ${config.programs.wlogout.package}/bin/wlogout" + "$mod, 0, exec, ${pkgs.wlogout}/bin/wlogout -b 5" ] ++ ( # workspaces diff --git a/modules/home/wlogout/wlogout.nix b/modules/home/wlogout/wlogout.nix index a4a241c..5aaac8a 100644 --- a/modules/home/wlogout/wlogout.nix +++ b/modules/home/wlogout/wlogout.nix @@ -1,16 +1,3 @@ -{pkgs, ...}: { +{...}: { programs.wlogout.enable = true; - programs.wlogout.package = pkgs.writeShellApplication { - name = "wlogout"; - runtimeInputs = [pkgs.wlogout]; - text = '' - # Check if wlogout is already running - if pgrep -x "wlogout" > /dev/null; then - pkill -x "wlogout" - exit 0 - fi - # 5 buttons in a row - wlogout -b 5 & - ''; - }; }