From 1072efe20680dedbe0760f8c16299d6597a9394d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20R=C3=B6ger?= Date: Fri, 1 Nov 2024 15:59:25 +0100 Subject: [PATCH] Home Gen405 @ 2024-11-01-15:59 --- modules/home/wlogout/style.css | 1 + modules/home/wlogout/wlogout.nix | 15 ++++++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) 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 & + ''; + }; }