Initial
This commit is contained in:
commit
c8734e660a
392 changed files with 21043 additions and 0 deletions
18
.config/waybar/waybar_ldelossa/custom/spotify/monitor.sh
Normal file
18
.config/waybar/waybar_ldelossa/custom/spotify/monitor.sh
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
# we are a clock for the other
|
||||
# spotify elements.
|
||||
#
|
||||
# waybar will run this on an interval
|
||||
# and external processes can trigger this
|
||||
# with pkill -RTMIN+4 waybar
|
||||
sleep .1
|
||||
pkill -RTMIN+5 waybar
|
||||
|
||||
# if spotify is running, trigger the
|
||||
# render of the "quit" element.
|
||||
if pgrep spotify > /dev/null
|
||||
then
|
||||
pkill -RTMIN+6 waybar
|
||||
fi
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue