mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
polybar: replace i3 bar with polybar
This commit is contained in:
11
.config/polybar/update.sh
Executable file
11
.config/polybar/update.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
dothething() { count=$( (checkupdates & yay -Qum) 2>/dev/null | wc -l); test $count -gt 0 && echo $count || echo; }
|
||||
|
||||
trap 'true' HUP USR1
|
||||
|
||||
while true; do
|
||||
dothething
|
||||
sleep 120 &
|
||||
wait
|
||||
done
|
Reference in New Issue
Block a user