zeit-bg-daemon
This commit is contained in:
parent
9be44240a3
commit
2de8db5661
3 changed files with 17 additions and 0 deletions
|
@ -26,4 +26,5 @@ riverctl float-filter-add app-id fzf
|
|||
~/.config/river/keys
|
||||
|
||||
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
|
||||
|
|
13
.local/bin/.zeit-bg-daemon.trigger
Executable file
13
.local/bin/.zeit-bg-daemon.trigger
Executable 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
3
.local/bin/zeit-bg-daemon
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
~/.local/bin/.zeit-bg-daemon.trigger
|
||||
busybox inotifyd ~/.local/bin/.zeit-bg-daemon.trigger "$ZEIT_DB:c"
|
Loading…
Reference in a new issue