From c4020395efc666b7bd005d4774154cdbebb01b84 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 13 May 2026 13:43:21 +0100 Subject: 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. --- dot_config/waybar/executable_mako-history.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'dot_config/waybar/executable_mako-history.sh') diff --git a/dot_config/waybar/executable_mako-history.sh b/dot_config/waybar/executable_mako-history.sh index 0617ca0..f15ec9c 100755 --- a/dot_config/waybar/executable_mako-history.sh +++ b/dot_config/waybar/executable_mako-history.sh @@ -7,8 +7,17 @@ set -eu selection=$( - makoctl history --format '[%a] %s — %b' | - fuzzel --dmenu --prompt 'History: ' + makoctl history | awk ' + /^Notification / { + sub(/^Notification [0-9]+: /, "") + summary = $0 + next + } + /^ App name: / { + sub(/^ App name: /, "") + print "[" $0 "] " summary + } + ' | fuzzel --dmenu --prompt 'History: ' ) if [ -n "$selection" ]; then -- cgit v1.3.1