From 6af444ad72f63c783872dd64e511b7743f43e7f2 Mon Sep 17 00:00:00 2001 From: Adam French Date: Tue, 6 Oct 2026 11:10:50 +0100 Subject: [PATCH] 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 --- sh/up | 8 ++++++++ sh/waybar-updates | 13 +++++++++++++ waybar/base.css | 10 ++-------- waybar/config | 30 +++++++++++------------------- 4 files changed, 34 insertions(+), 27 deletions(-) create mode 100755 sh/up create mode 100755 sh/waybar-updates diff --git a/sh/up b/sh/up new file mode 100755 index 0000000..e05b940 --- /dev/null +++ b/sh/up @@ -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 diff --git a/sh/waybar-updates b/sh/waybar-updates new file mode 100755 index 0000000..5e02807 --- /dev/null +++ b/sh/waybar-updates @@ -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/