From 0148f70b0968e297905a358871e65136b8454e01 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Tue, 3 Dec 2024 07:28:08 +0000 Subject: [PATCH] Add wlogout config back but not bound to key yet TODO configure more to include sync-and-shutdown as part of logout options --- system/home/hyprland.nix | 1 + system/home/wlogout.nix | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 system/home/wlogout.nix diff --git a/system/home/hyprland.nix b/system/home/hyprland.nix index 6d851890..8a52cbb3 100644 --- a/system/home/hyprland.nix +++ b/system/home/hyprland.nix @@ -12,6 +12,7 @@ ./fuzzel.nix ./mako.nix ./avizo.nix + ./wlogout.nix ]; home.packages = [ (pkgs.writeShellScriptBin "protonmail-setup-bridge" '' diff --git a/system/home/wlogout.nix b/system/home/wlogout.nix new file mode 100644 index 00000000..a2c380d7 --- /dev/null +++ b/system/home/wlogout.nix @@ -0,0 +1,26 @@ +{ config, ... }: +{ + programs.wlogout = { + enable = true; + layout = [ + { + label = "reboot"; + action = "systemctl reboot"; + text = "Reboot"; + keybind = "r"; + } + { + label = "shutdown"; + action = "systemctl poweroff"; + text = "Shutdown"; + keybind = "s"; + } + { + label = "lock"; + action = "${config.programs.hyprlock.package}/bin/hyprlock"; + text = "Lock Screen"; + keybind = "l"; + } + ]; + }; +}