From 083a99063d5092e0895424f652804065c84463f8 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 13 May 2026 13:43:19 +0100 Subject: chore(fmt): apply shfmt and prettier formatting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - shfmt -i 2 -ci -s on the four updated shell scripts (tabs → 2 spaces) - prettier --write on KEYBINDS.md and README.md --- dot_config/waybar/executable_mako-status.sh | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'dot_config/waybar/executable_mako-status.sh') diff --git a/dot_config/waybar/executable_mako-status.sh b/dot_config/waybar/executable_mako-status.sh index a2fb792..ed89661 100644 --- a/dot_config/waybar/executable_mako-status.sh +++ b/dot_config/waybar/executable_mako-status.sh @@ -4,25 +4,25 @@ set -eu if ! command -v makoctl >/dev/null 2>&1; then - printf '{"text":"","tooltip":"mako not installed","class":"off"}\n' - exit 0 + printf '{"text":"","tooltip":"mako not installed","class":"off"}\n' + exit 0 fi -count=$(makoctl history 2>/dev/null \ - | grep -c '"summary"' || true) -pending=$(makoctl list 2>/dev/null \ - | grep -c '"summary"' || true) +count=$(makoctl history 2>/dev/null | + grep -c '"summary"' || true) +pending=$(makoctl list 2>/dev/null | + grep -c '"summary"' || true) if [ "$pending" -gt 0 ]; then - text="!$pending" - class="pending" + text="!$pending" + class="pending" elif [ "$count" -gt 0 ]; then - text="$count" - class="history" + text="$count" + class="history" else - text="0" - class="empty" + text="0" + class="empty" fi printf '{"text":"%s","tooltip":"%s pending / %s history","class":"%s"}\n' \ - "$text" "$pending" "$count" "$class" + "$text" "$pending" "$count" "$class" -- cgit v1.3.1