Home Gen405 @ 2024-11-01-15:59
This commit is contained in:
parent
b8ff170f4c
commit
1072efe206
@ -25,6 +25,7 @@ button {
|
||||
transition: all 0.3s ease-in;
|
||||
box-shadow: 0 0 10px 2px transparent;
|
||||
border-radius: 36px;
|
||||
border-style: transparent;
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
|
||||
@ -1,3 +1,16 @@
|
||||
{...}: {
|
||||
{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 &
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user