Add waybar update counter and up script, drop Steam/Waterfox/Discord buttons
Show all 8 workspaces persistently in the workspaces module. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
# up: update repo, AUR and flatpak packages without prompts
|
||||
|
||||
yay -Syu --noconfirm
|
||||
flatpak update -y
|
||||
|
||||
# refresh the waybar update counter
|
||||
pkill -RTMIN+8 waybar
|
||||
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
# waybar-updates: prints pending repo + AUR update count, nothing when up to date
|
||||
|
||||
repo=$(checkupdates 2>/dev/null)
|
||||
aur=$(yay -Qua 2>/dev/null)
|
||||
|
||||
list=$(printf '%s\n%s\n' "$repo" "$aur" | sed '/^$/d')
|
||||
[ -z "$list" ] && exit 0
|
||||
|
||||
count=$(wc -l <<<"$list")
|
||||
tooltip=$(head -40 <<<"$list" | sed 's/&/\&/g; s/</\</g' | sed ':a;N;$!ba;s/\n/\\n/g')
|
||||
|
||||
printf '{"text": "UPD: %s", "tooltip": "%s"}\n' "$count" "$tooltip"
|
||||
Reference in New Issue
Block a user