diff options
author | Yigit Sever | 2021-10-03 04:21:32 +0300 |
---|---|---|
committer | Yigit Sever | 2021-10-03 04:21:32 +0300 |
commit | 4b193ae2b3de93b4da72c84ba30f90a0eacc843f (patch) | |
tree | 21e8cdd237d198573615054eb65c61a0808510ba | |
parent | 01a037d2e6c685385a3ed507498f35a7ba64d52d (diff) | |
download | dotfiles-4b193ae2b3de93b4da72c84ba30f90a0eacc843f.tar.gz dotfiles-4b193ae2b3de93b4da72c84ba30f90a0eacc843f.tar.bz2 dotfiles-4b193ae2b3de93b4da72c84ba30f90a0eacc843f.zip |
polybar: notification pauses with siji
-rwxr-xr-x | .config/polybar/launch.sh | 7 | ||||
-rwxr-xr-x | .config/polybar/notification_pause.sh | 2 |
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 | ||
4 | fc-cache -fv | ||
5 | |||
3 | # Terminate already running bar instances | 6 | # Terminate already running bar instances |
4 | killall -q polybar | 7 | killall -q polybar |
5 | 8 | ||
6 | # Wait until the processes have been shut down | 9 | # Wait until the processes have been shut down |
7 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done | 10 | while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done |
8 | 11 | ||
9 | # Launch bar1 and bar2 | 12 | # Launch bar |
10 | polybar top & | 13 | polybar top & |
11 | 14 | ||
12 | echo "Bars launched..." | 15 | echo "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 | |||
5 | if [ ! -e $TOGGLE ]; then | 5 | if [ ! -e $TOGGLE ]; then |
6 | echo | 6 | echo |
7 | else | 7 | else |
8 | printf "🔕" | 8 | printf "" |
9 | fi | 9 | fi |