zeit-bg-daemon

This commit is contained in:
Cat /dev/Nulo 2022-05-04 17:09:38 -03:00
parent 9be44240a3
commit 2de8db5661
3 changed files with 17 additions and 0 deletions

View file

@ -26,4 +26,5 @@ riverctl float-filter-add app-id fzf
~/.config/river/keys ~/.config/river/keys
riverctl spawn "pgrep -x stacktile >/dev/null || stacktile --per-tag-config --drop-empty-configs --primary-sublayout=stack" riverctl spawn "pgrep -x stacktile >/dev/null || stacktile --per-tag-config --drop-empty-configs --primary-sublayout=stack"
riverctl spawn "killall zeit-bg-daemon ; zeit-bg-daemon"
riverctl default-layout stacktile riverctl default-layout stacktile

View file

@ -0,0 +1,13 @@
#!/bin/sh
. ~/.cache/themer.lua/shell
tracking="$(zeit tracking --no-colors)"
if echo "$tracking" | grep -q '^ ▶ tracking'; then
color="$backgroundish"
else
color="$background"
fi
riverctl background-color "0x$color"

3
.local/bin/zeit-bg-daemon Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
~/.local/bin/.zeit-bg-daemon.trigger
busybox inotifyd ~/.local/bin/.zeit-bg-daemon.trigger "$ZEIT_DB:c"