feat: nice stuff
This commit is contained in:
19
bspwm/checkupdates.sh
Executable file
19
bspwm/checkupdates.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
upd() {
|
||||
checkupdates | wc -l > /tmp/checkupdates
|
||||
}
|
||||
|
||||
if [[ ! -f /tmp/checkupdates ]]; then
|
||||
upd
|
||||
fi
|
||||
|
||||
count=$(cat /tmp/checkupdates)
|
||||
status="$count updates"
|
||||
if [[ $count -eq 0 ]]; then
|
||||
status="Up to date"
|
||||
fi
|
||||
|
||||
echo "$status"
|
||||
|
||||
upd & disown
|
||||
Reference in New Issue
Block a user