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