From 90ff492f644302668d4f82f08f8447d2bb52b531 Mon Sep 17 00:00:00 2001 From: surtur Date: Thu, 28 Sep 2023 21:03:32 +0200 Subject: [PATCH] configure batsignal using home-manager --- .config/sway/config | 3 --- home-surtur.nix | 5 +++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.config/sway/config b/.config/sway/config index 0e2d40d..1dbeefe 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -98,13 +98,11 @@ exec_always --no-startup-id pgrep -u $(id -u) mako && pkill mako pgrep -u $(id -u) fusuma && pkill fusuma pgrep -u $(id -u) swayrd && pkill swayrd - pgrep -u $(id -u) batsignal && pkill batsignal pgrep -u $(id -u) swayidle && pkill swayidle mako XDG_CURRENT_DESKTOP=gnome fusuma -d -c ~/.config/fusuma/config-wl.yml env RUST_BACKTRACE=1 swayrd > /tmp/swayrd.log 2>&1 - batsignal '-d -w 25 -c 15 -d 10' swayidle -w \ timeout 545 'pgrep -u $(id -u) swaylock || notify-send -t 15000 -u critical -i "Idle timeout" "Screen is locking soon"' \ timeout 600 "$lock" \ @@ -128,7 +126,6 @@ exec --no-startup-id { # XDG_SESSION_TYPE=x11 XDG_CURRENT_DESKTOP=gnome fusuma -d -c ~/.config/fusuma/config-wl.yml pgrep -u $(id -u) fusuma || XDG_CURRENT_DESKTOP=gnome fusuma -d -c ~/.config/fusuma/config-wl.yml env RUST_BACKTRACE=1 swayrd > /tmp/swayrd.log 2>&1 - pgrep -u $(id -u) batsignal || batsignal '-d -w 25 -c 15 -d 10' pgrep -u $(id -u) swayidle || swayidle -w \ timeout 545 'pgrep -u $(id -u) swaylock || notify-send -t 15000 -u critical -i "Idle timeout" "Screen is locking soon"' \ timeout 600 "$lock" \ diff --git a/home-surtur.nix b/home-surtur.nix index 5cdd410..7725da6 100644 --- a/home-surtur.nix +++ b/home-surtur.nix @@ -104,6 +104,11 @@ in { enable = true; indicator = true; }; + + batsignal = { + enable = true; + extraArgs = ["-w 25" "-c 15" "-d 10"]; + }; }; systemd.user.services = {