aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/waybar/executable_mako-history.sh
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:20 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:20 +0100
commit570a8973d8594db9a72cb93a1e2c2350368051d0 (patch)
tree405ee63506f86a2f134bbc1a0aa884fb2e0d8ba9 /dot_config/waybar/executable_mako-history.sh
parent849bb43a7e6789867f5ca6ec68b76042051e532c (diff)
downloaddotfiles-570a8973d8594db9a72cb93a1e2c2350368051d0.tar.gz
dotfiles-570a8973d8594db9a72cb93a1e2c2350368051d0.tar.bz2
dotfiles-570a8973d8594db9a72cb93a1e2c2350368051d0.zip
fix(waybar): use makoctl --format for text output, not JSON grep
makoctl outputs plain text by default on this version. Use --format strings for both the history picker (%a/%s/%b) and the counter script (%i + wc), instead of trying to parse JSON that isn't there.
Diffstat (limited to 'dot_config/waybar/executable_mako-history.sh')
-rwxr-xr-xdot_config/waybar/executable_mako-history.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/dot_config/waybar/executable_mako-history.sh b/dot_config/waybar/executable_mako-history.sh
index 4c0ec3a..0617ca0 100755
--- a/dot_config/waybar/executable_mako-history.sh
+++ b/dot_config/waybar/executable_mako-history.sh
@@ -7,12 +7,8 @@
set -eu
selection=$(
- makoctl history | jq -r '
- def v: if type == "object" and has("data") then .data else . end;
- [.. | objects | select(has("summary") and has("app-name"))]
- | .[]
- | "[\(.["app-name"] | v)] \(.summary | v) — \((.body | v) // "")"
- ' | fuzzel --dmenu --prompt 'History: '
+ makoctl history --format '[%a] %s — %b' |
+ fuzzel --dmenu --prompt 'History: '
)
if [ -n "$selection" ]; then