Home Gen407 @ 2024-11-01-16:01
This commit is contained in:
@@ -1,16 +1,3 @@
|
||||
{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 &
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user