blob: 6f449d6a230a184980e2b01711c557c7f862002f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/usr/bin/env bash
pkill n30f
while getopts hs options
do
case $options in
h) # hide
pkill -f polybar\ artist
pkill -f polybar\ track
pkill -f polybar\ album
;;
s) # show
if pgrep -f polybar\ artist > /dev/null; then
~/scripts/popups/cover.sh
else
polybar artist &
polybar track &
polybar album &
~/scripts/popups/cover.sh
fi
;;
esac
done
|