summaryrefslogtreecommitdiffstats
path: root/.config/polybar
diff options
context:
space:
mode:
authorYigit Sever2021-10-03 04:21:32 +0300
committerYigit Sever2021-10-03 04:21:32 +0300
commit4b193ae2b3de93b4da72c84ba30f90a0eacc843f (patch)
tree21e8cdd237d198573615054eb65c61a0808510ba /.config/polybar
parent01a037d2e6c685385a3ed507498f35a7ba64d52d (diff)
downloaddotfiles-4b193ae2b3de93b4da72c84ba30f90a0eacc843f.tar.gz
dotfiles-4b193ae2b3de93b4da72c84ba30f90a0eacc843f.tar.bz2
dotfiles-4b193ae2b3de93b4da72c84ba30f90a0eacc843f.zip
polybar: notification pauses with siji
diffstat (limited to '.config/polybar')
-rwxr-xr-x.config/polybar/launch.sh7
-rwxr-xr-x.config/polybar/notification_pause.sh2
2 files changed, 6 insertions, 3 deletions
diff --git a/.config/polybar/launch.sh b/.config/polybar/launch.sh
index e6c42ff..a99d452 100755
--- a/.config/polybar/launch.sh
+++ b/.config/polybar/launch.sh
@@ -1,12 +1,15 @@
1#!/bin/bash 1#!/bin/bash
2 2
3# Try your luck one last time
4fc-cache -fv
5
3# Terminate already running bar instances 6# Terminate already running bar instances
4killall -q polybar 7killall -q polybar
5 8
6# Wait until the processes have been shut down 9# Wait until the processes have been shut down
7while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done 10while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
8 11
9# Launch bar1 and bar2 12# Launch bar
10polybar top & 13polybar top &
11 14
12echo "Bars launched..." 15echo "Bar launched..."
diff --git a/.config/polybar/notification_pause.sh b/.config/polybar/notification_pause.sh
index 7e59453..1df1bd6 100755
--- a/.config/polybar/notification_pause.sh
+++ b/.config/polybar/notification_pause.sh
@@ -5,5 +5,5 @@ TOGGLE=$HOME/.local/share/.pause_notifications
5if [ ! -e $TOGGLE ]; then 5if [ ! -e $TOGGLE ]; then
6 echo 6 echo
7else 7else
8 printf "🔕" 8 printf ""
9fi 9fi