feat: nice stuff

This commit is contained in:
2025-09-17 18:05:36 +03:00
parent e9e2ecba31
commit 5f61c6abd9
7 changed files with 157 additions and 47 deletions

19
bspwm/checkupdates.sh Executable file
View 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