Home Gen405 @ 2024-11-01-15:59

This commit is contained in:
Jonas Röger 2024-11-01 15:59:25 +01:00
parent b8ff170f4c
commit 1072efe206
2 changed files with 15 additions and 1 deletions

View File

@ -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;
}

View File

@ -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 &
'';
};
}