44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
|
{ ... }: {
|
||
|
xdg.configFile."wlogout/layout" = {
|
||
|
enable = true;
|
||
|
target = "./wlogout/layout";
|
||
|
text = ''
|
||
|
{
|
||
|
"label" : "lock",
|
||
|
"action" : "swaylock",
|
||
|
"text" : "Lock",
|
||
|
"keybind" : "l"
|
||
|
}
|
||
|
{
|
||
|
"label" : "hibernate",
|
||
|
"action" : "systemctl hibernate",
|
||
|
"text" : "Hibernate",
|
||
|
"keybind" : "h"
|
||
|
}
|
||
|
{
|
||
|
"label" : "logout",
|
||
|
"action" : "loginctl terminate-user $USER",
|
||
|
"text" : "Logout",
|
||
|
"keybind" : "e"
|
||
|
}
|
||
|
{
|
||
|
"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"
|
||
|
}
|
||
|
'';
|
||
|
};
|
||
|
}
|