diff options
Diffstat (limited to 'scripts/scripts/hidebars.sh')
-rwxr-xr-x | scripts/scripts/hidebars.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/scripts/hidebars.sh b/scripts/scripts/hidebars.sh new file mode 100755 index 0000000..6f449d6 --- /dev/null +++ b/scripts/scripts/hidebars.sh | |||
@@ -0,0 +1,23 @@ | |||
1 | #!/usr/bin/env bash | ||
2 | |||
3 | pkill n30f | ||
4 | while getopts hs options | ||
5 | do | ||
6 | case $options in | ||
7 | h) # hide | ||
8 | pkill -f polybar\ artist | ||
9 | pkill -f polybar\ track | ||
10 | pkill -f polybar\ album | ||
11 | ;; | ||
12 | s) # show | ||
13 | if pgrep -f polybar\ artist > /dev/null; then | ||
14 | ~/scripts/popups/cover.sh | ||
15 | else | ||
16 | polybar artist & | ||
17 | polybar track & | ||
18 | polybar album & | ||
19 | ~/scripts/popups/cover.sh | ||
20 | fi | ||
21 | ;; | ||
22 | esac | ||
23 | done | ||