configure batsignal using home-manager

This commit is contained in:
surtur 2023-09-28 21:03:32 +02:00
parent 02a76d3dbd
commit 90ff492f64
Signed by: wanderer
SSH Key Fingerprint: SHA256:MdCZyJ2sHLltrLBp0xQO0O1qTW9BT/xl5nXkDvhlMCI
2 changed files with 5 additions and 3 deletions

@ -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" \

@ -104,6 +104,11 @@ in {
enable = true;
indicator = true;
};
batsignal = {
enable = true;
extraArgs = ["-w 25" "-c 15" "-d 10"];
};
};
systemd.user.services = {