diff options
| author | 2026-05-13 13:43:21 +0100 | |
|---|---|---|
| committer | 2026-05-13 13:43:21 +0100 | |
| commit | c4020395efc666b7bd005d4774154cdbebb01b84 (patch) | |
| tree | 9cb696e11f7a82769be61f8a5d1c77dfcbf05440 /dot_config/waybar/executable_mako-status.sh | |
| parent | 570a8973d8594db9a72cb93a1e2c2350368051d0 (diff) | |
| download | dotfiles-c4020395efc666b7bd005d4774154cdbebb01b84.tar.gz dotfiles-c4020395efc666b7bd005d4774154cdbebb01b84.tar.bz2 dotfiles-c4020395efc666b7bd005d4774154cdbebb01b84.zip | |
fix(waybar): parse mako's plain-text list output directly
--format is not supported by this mako version. Parse the native text
output (Notification N: summary / App name: X) with awk for the picker
and grep '^Notification ' for the counter.
Diffstat (limited to 'dot_config/waybar/executable_mako-status.sh')
| -rw-r--r-- | dot_config/waybar/executable_mako-status.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dot_config/waybar/executable_mako-status.sh b/dot_config/waybar/executable_mako-status.sh index c97f9f8..c0a4edd 100644 --- a/dot_config/waybar/executable_mako-status.sh +++ b/dot_config/waybar/executable_mako-status.sh @@ -8,8 +8,8 @@ if ! command -v makoctl >/dev/null 2>&1; then exit 0 fi -count=$(makoctl history --format '%i' 2>/dev/null | grep -c . || true) -pending=$(makoctl list --format '%i' 2>/dev/null | grep -c . || true) +count=$(makoctl history 2>/dev/null | grep -c '^Notification ' || true) +pending=$(makoctl list 2>/dev/null | grep -c '^Notification ' || true) if [ "$pending" -gt 0 ]; then text="NTF !$pending" |
