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"
|
||||||
+2
-8
@@ -51,6 +51,7 @@ window#waybar {
|
|||||||
#custom-greetings,
|
#custom-greetings,
|
||||||
#custom-history,
|
#custom-history,
|
||||||
#custom-claudebar,
|
#custom-claudebar,
|
||||||
|
#custom-updates,
|
||||||
#pulseaudio,
|
#pulseaudio,
|
||||||
#cpu,
|
#cpu,
|
||||||
#memory,
|
#memory,
|
||||||
@@ -65,6 +66,7 @@ window#waybar {
|
|||||||
/* Pink separators between modules (matching i3bar separator color) */
|
/* Pink separators between modules (matching i3bar separator color) */
|
||||||
#custom-history,
|
#custom-history,
|
||||||
#custom-claudebar,
|
#custom-claudebar,
|
||||||
|
#custom-updates,
|
||||||
#pulseaudio,
|
#pulseaudio,
|
||||||
#cpu,
|
#cpu,
|
||||||
#memory,
|
#memory,
|
||||||
@@ -109,20 +111,12 @@ window#waybar {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* App launcher buttons */
|
/* App launcher buttons */
|
||||||
#custom-steam,
|
|
||||||
#custom-waterfox,
|
|
||||||
#custom-discord,
|
|
||||||
#custom-spotify,
|
#custom-spotify,
|
||||||
#custom-obsidian {
|
#custom-obsidian {
|
||||||
padding: 0 10px;
|
padding: 0 10px;
|
||||||
color: @color_primary;
|
color: @color_primary;
|
||||||
}
|
}
|
||||||
|
|
||||||
#custom-steam {
|
|
||||||
margin-left: 8px;
|
|
||||||
border-left: 1px solid @color_tertiary;
|
|
||||||
}
|
|
||||||
|
|
||||||
#tray {
|
#tray {
|
||||||
padding: 0 8px;
|
padding: 0 8px;
|
||||||
border-left: 1px solid @color_tertiary;
|
border-left: 1px solid @color_tertiary;
|
||||||
|
|||||||
+11
-19
@@ -4,11 +4,12 @@
|
|||||||
"height": 30,
|
"height": 30,
|
||||||
"spacing": 0,
|
"spacing": 0,
|
||||||
|
|
||||||
"modules-left": ["hyprland/workspaces", "hyprland/submap", "custom/steam", "custom/waterfox", "custom/discord", "custom/spotify", "custom/obsidian"],
|
"modules-left": ["hyprland/workspaces", "hyprland/submap", "custom/spotify", "custom/obsidian"],
|
||||||
"modules-right": [
|
"modules-right": [
|
||||||
"custom/greetings",
|
"custom/greetings",
|
||||||
"custom/history",
|
"custom/history",
|
||||||
"custom/claudebar",
|
"custom/claudebar",
|
||||||
|
"custom/updates",
|
||||||
"pulseaudio",
|
"pulseaudio",
|
||||||
"cpu",
|
"cpu",
|
||||||
"memory",
|
"memory",
|
||||||
@@ -22,6 +23,7 @@
|
|||||||
"hyprland/workspaces": {
|
"hyprland/workspaces": {
|
||||||
"disable-scroll": true,
|
"disable-scroll": true,
|
||||||
"on-click": "activate",
|
"on-click": "activate",
|
||||||
|
"persistent-workspaces": { "*": 8 },
|
||||||
"format": "{icon}",
|
"format": "{icon}",
|
||||||
"format-icons": {
|
"format-icons": {
|
||||||
"1": "ツ",
|
"1": "ツ",
|
||||||
@@ -61,6 +63,14 @@
|
|||||||
"on-click": "xdg-open https://claude.ai/settings/usage"
|
"on-click": "xdg-open https://claude.ai/settings/usage"
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"custom/updates": {
|
||||||
|
"exec": "waybar-updates",
|
||||||
|
"return-type": "json",
|
||||||
|
"interval": 1800,
|
||||||
|
"signal": 8,
|
||||||
|
"on-click": "kitty --hold -e up"
|
||||||
|
},
|
||||||
|
|
||||||
"pulseaudio": {
|
"pulseaudio": {
|
||||||
"format": "VOL: {volume}%",
|
"format": "VOL: {volume}%",
|
||||||
"format-muted": "VOL: mute",
|
"format-muted": "VOL: mute",
|
||||||
@@ -113,24 +123,6 @@
|
|||||||
"spacing": 10
|
"spacing": 10
|
||||||
},
|
},
|
||||||
|
|
||||||
"custom/steam": {
|
|
||||||
"format": "Steam",
|
|
||||||
"on-click": "steam",
|
|
||||||
"tooltip-format": "Steam"
|
|
||||||
},
|
|
||||||
|
|
||||||
"custom/waterfox": {
|
|
||||||
"format": "Waterfox",
|
|
||||||
"on-click": "waterfox",
|
|
||||||
"tooltip-format": "Waterfox"
|
|
||||||
},
|
|
||||||
|
|
||||||
"custom/discord": {
|
|
||||||
"format": "Discord",
|
|
||||||
"on-click": "snap run discord",
|
|
||||||
"tooltip-format": "Discord"
|
|
||||||
},
|
|
||||||
|
|
||||||
"custom/spotify": {
|
"custom/spotify": {
|
||||||
"format": "Spotify",
|
"format": "Spotify",
|
||||||
"on-click": "snap run spotify",
|
"on-click": "snap run spotify",
|
||||||
|
|||||||
Reference in New Issue
Block a user