From a1b117c408125e42a18157ad542ca962bf47a9ef Mon Sep 17 00:00:00 2001 From: Doloro1978 Date: Mon, 29 Dec 2025 11:29:58 +0000 Subject: [PATCH] mod(hyprland): added wlogout layout --- modules/hyprland/home.nix | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/modules/hyprland/home.nix b/modules/hyprland/home.nix index b5a90dc..374a14c 100644 --- a/modules/hyprland/home.nix +++ b/modules/hyprland/home.nix @@ -44,6 +44,45 @@ in programs = { wlogout = { enable = true; + layout = [ + { + "label" = "lock"; + "action" = "loginctl lock-session"; + "text" = "Lock"; + "keybind" = "l"; + } + { + "label" = "hibernate"; + "action" = "systemctl hibernate"; + "text" = "Hibernate"; + "keybind" = "h"; + } + { + "label" = "logout"; + "action" = "loginctl terminate-user $USER"; + "text" = "Logout"; + "keybind" = "e"; + } + { + # TODO add hypr shutdown + "label" = "shutdown"; + "action" = "systemctl poweroff"; + "text" = "Shutdown"; + "keybind" = "s"; + } + { + "label" = "suspend"; + "action" = "systemctl suspend"; + "text" = "Suspend"; + "keybind" = "u"; + } + { + "label" = "reboot"; + "action" = "systemctl reboot"; + "text" = "Reboot"; + "keybind" = "r"; + } + ]; }; }; systemd.user.services."hyprland_suspend" = lib.mkIf cfg.suspend-on-hibernate {