mirror of
https://github.com/dcarrillo/dotfiles.git
synced 2025-07-01 19:49:25 +00:00
First commit
This commit is contained in:
8
.config/polybar/scripts/check_updates
Executable file
8
.config/polybar/scripts/check_updates
Executable file
@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
while true; do
|
||||
UPDATES=$(checkupdates 2>/dev/null | wc -l)
|
||||
|
||||
[[ $UPDATES -gt 0 ]] && echo " $UPDATES" && sleep 30
|
||||
[[ $UPDATES -eq 0 ]] && echo "" && sleep 300
|
||||
done
|
Reference in New Issue
Block a user