diff options
Diffstat (limited to 'dot_config/waybar')
| -rwxr-xr-x | dot_config/waybar/executable_mako-history.sh | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/dot_config/waybar/executable_mako-history.sh b/dot_config/waybar/executable_mako-history.sh index 046f555..4c0ec3a 100755 --- a/dot_config/waybar/executable_mako-history.sh +++ b/dot_config/waybar/executable_mako-history.sh @@ -7,9 +7,12 @@ set -eu selection=$( - makoctl history | - jq -r '.data[0][] | "[\(.["app-name"].data)] \(.summary.data) — \(.body.data)"' | - fuzzel --dmenu --prompt 'History: ' + 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: ' ) if [ -n "$selection" ]; then |
