17 lines
387 B
Nix
17 lines
387 B
Nix
{pkgs, ...}: {
|
|
programs.wlogout.enable = true;
|
|
programs.wlogout.package = pkgs.writeShellApplication {
|
|
name = "wlogout";
|
|
runtimeInputs = [pkgs.wlogout];
|
|
text = ''
|
|
# Check if wlogout is already running
|
|
if pgrep -x "wlogout" > /dev/null; then
|
|
pkill -x "wlogout"
|
|
exit 0
|
|
fi
|
|
# 5 buttons in a row
|
|
wlogout -b 5 &
|
|
'';
|
|
};
|
|
}
|