diff --git a/modules/home/wlogout/style.css b/modules/home/wlogout/style.css index b44b5b8..08c60a5 100644 --- a/modules/home/wlogout/style.css +++ b/modules/home/wlogout/style.css @@ -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; } diff --git a/modules/home/wlogout/wlogout.nix b/modules/home/wlogout/wlogout.nix index 5aaac8a..a4a241c 100644 --- a/modules/home/wlogout/wlogout.nix +++ b/modules/home/wlogout/wlogout.nix @@ -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 & + ''; + }; }