2024-03-29 23:27:08 -04:00
|
|
|
{ pkgs, lib, config, ... }: {
|
|
|
|
|
|
|
|
options = { guiApps.wlogout.enable = lib.mkEnableOption "Enables wlogout."; };
|
|
|
|
|
|
|
|
config = lib.mkIf config.guiApps.wlogout.enable {
|
|
|
|
programs.wlogout = {
|
|
|
|
enable = true;
|
|
|
|
layout = [
|
|
|
|
{
|
|
|
|
label = "logout";
|
2024-03-30 23:59:57 -04:00
|
|
|
action = "${pkgs.systemd}/bin/loginctl terminate-user $USER";
|
2024-03-29 23:27:08 -04:00
|
|
|
text = "Logout";
|
|
|
|
keybind = "e";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
label = "shutdown";
|
2024-03-30 23:59:57 -04:00
|
|
|
action = "${pkgs.systemd}/bin/systemctl poweroff";
|
2024-03-29 23:27:08 -04:00
|
|
|
text = "Shutdown";
|
|
|
|
keybind = "s";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
label = "reboot";
|
2024-03-30 23:59:57 -04:00
|
|
|
action = "${pkgs.systemd}/bin/systemctl reboot";
|
2024-03-29 23:27:08 -04:00
|
|
|
text = "Reboot";
|
|
|
|
keybind = "r";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|