mod(hyprland): added wlogout layout

This commit is contained in:
2025-12-29 11:29:58 +00:00
parent 294fc0a229
commit a1b117c408

View File

@@ -44,6 +44,45 @@ in
programs = { programs = {
wlogout = { wlogout = {
enable = true; 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 { systemd.user.services."hyprland_suspend" = lib.mkIf cfg.suspend-on-hibernate {