From c455e419033daef624922e06654ad6c2138ddc9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20R=C3=B6ger?= Date: Fri, 1 Nov 2024 15:02:50 +0100 Subject: [PATCH] Home Gen399 @ 2024-11-01-15:02 --- modules/home/wlogout/config.nix | 34 ++++++++++++++++++++++++++++++++ modules/home/wlogout/default.nix | 1 + 2 files changed, 35 insertions(+) create mode 100644 modules/home/wlogout/config.nix diff --git a/modules/home/wlogout/config.nix b/modules/home/wlogout/config.nix new file mode 100644 index 0000000..8565d50 --- /dev/null +++ b/modules/home/wlogout/config.nix @@ -0,0 +1,34 @@ +{...}: { + programs.wlogout.layout = [ + { + label = "shutdown"; + action = "systemctl poweroff"; + text = "Shutdown"; + keybind = "s"; + } + { + label = "reboot"; + action = "systemctl reboot"; + text = "Reboot"; + keybind = "r"; + } + { + label = "logout"; + action = "loginctl kill-session $XDG_SESSION_ID"; + text = "Logout"; + keybind = "e"; + } + { + label = "hibernate"; + action = "hyprlock --immediate && systemctl hibernate"; + text = "Hibernate"; + keybind = "h"; + } + { + label = "lock"; + action = "hyprlock"; + text = "Lock"; + keybind = "l"; + } + ]; +} diff --git a/modules/home/wlogout/default.nix b/modules/home/wlogout/default.nix index d0235fd..c6a4c57 100644 --- a/modules/home/wlogout/default.nix +++ b/modules/home/wlogout/default.nix @@ -1,5 +1,6 @@ {...}: { imports = [ + ./config.nix ./wlogout.nix ]; }