2024-01-04 06:39:52 +01:00
|
|
|
{ config, ... }: {
|
2024-01-05 07:28:43 +01:00
|
|
|
|
2024-01-05 08:14:05 +01:00
|
|
|
programs.wlogout = {
|
2024-01-03 14:25:06 +01:00
|
|
|
enable = true;
|
2024-01-05 07:28:43 +01:00
|
|
|
layout = [
|
|
|
|
{
|
|
|
|
label = "lock";
|
|
|
|
action = "swaylock";
|
|
|
|
text = "Lock";
|
|
|
|
circular = true;
|
|
|
|
keybind = "l";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
label = "hibernate";
|
|
|
|
action = "systemctl hibernate";
|
|
|
|
text = "Hibernate";
|
|
|
|
circular = true;
|
|
|
|
keybind = "h";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
label = "logout";
|
|
|
|
action = "loginctl terminate-user $USER";
|
|
|
|
text = "Logout";
|
|
|
|
circular = true;
|
|
|
|
keybind = "e";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
label = "shutdown";
|
|
|
|
action = "systemctl poweroff";
|
|
|
|
text = "Shutdown";
|
|
|
|
circular = true;
|
|
|
|
keybind = "s";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
label = "suspend";
|
|
|
|
action = "systemctl suspend";
|
|
|
|
text = "Suspend";
|
|
|
|
circular = true;
|
|
|
|
keybind = "u";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
label = "reboot";
|
|
|
|
action = "systemctl reboot";
|
|
|
|
text = "Reboot";
|
|
|
|
circular = true;
|
|
|
|
keybind = "r";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
xdg.configFile."wlogout/style.css" = {
|
2024-01-06 13:00:23 +01:00
|
|
|
enable = true;
|
2024-01-03 14:25:06 +01:00
|
|
|
target = "./wlogout/style.css";
|
|
|
|
text = ''
|
2024-01-06 13:05:10 +01:00
|
|
|
#lock { background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/assets/wlogout/lock.png"); }
|
|
|
|
#logout { background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/assets/wlogout/logout.png"); }
|
|
|
|
#suspend { background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/assets/wlogout/suspend.png"); }
|
|
|
|
#hibernate { background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/assets/wlogout/hibernate.png"); }
|
|
|
|
#shutdown { background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/assets/wlogout/shutdown.png"); }
|
|
|
|
#reboot { background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/assets/wlogout/reboot.png"); }
|
2024-01-03 14:25:06 +01:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|