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"; + } + ]; + }; +}