aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/dot_config/waybar/executable_mako-status.sh
diff options
context:
space:
mode:
authorLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:32 +0100
committerLibravatar sommerfeld <sommerfeld@sommerfeld.dev>2026-05-13 13:43:32 +0100
commit0c15212f4f2389f743b17cb6ceff50f1f9267a1b (patch)
tree9db73d86cfebc23b3032b32a1cc3be7b1e8bef38 /dot_config/waybar/executable_mako-status.sh
parent2970b9dddc6b89705a6836fa0864fb841925ff6f (diff)
downloaddotfiles-0c15212f4f2389f743b17cb6ceff50f1f9267a1b.tar.gz
dotfiles-0c15212f4f2389f743b17cb6ceff50f1f9267a1b.tar.bz2
dotfiles-0c15212f4f2389f743b17cb6ceff50f1f9267a1b.zip
style: apply formatter drift across repo
Pre-existing whitespace/style drift caught by `just check`. Touch nothing semantic — pure formatter output (shfmt -i 2 -ci -s, ruff, prettier, taplo). Excludes dot_config/clangd/config.yaml whose manual indentation is intentionally preserved.
Diffstat (limited to 'dot_config/waybar/executable_mako-status.sh')
-rw-r--r--dot_config/waybar/executable_mako-status.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/dot_config/waybar/executable_mako-status.sh b/dot_config/waybar/executable_mako-status.sh
index de9b215..12e4d82 100644
--- a/dot_config/waybar/executable_mako-status.sh
+++ b/dot_config/waybar/executable_mako-status.sh
@@ -20,11 +20,14 @@ state=${XDG_RUNTIME_DIR:-/tmp}/mako-dismissed
# starts with "Notification N: <summary>". Visible bubbles live in
# `list`, closed ones in `history`; their id-spaces are disjoint.
extract_ids() {
- makoctl "$1" 2>/dev/null \
- | sed -n 's/^Notification \([0-9][0-9]*\):.*/\1/p'
+ makoctl "$1" 2>/dev/null |
+ sed -n 's/^Notification \([0-9][0-9]*\):.*/\1/p'
}
-all_ids=$( { extract_ids list; extract_ids history; } | sort -un)
+all_ids=$({
+ extract_ids list
+ extract_ids history
+} | sort -un)
# Prune stale ids (no longer present in mako) from the dismissed file.
if [ -s "$state" ] && [ -n "$all_ids" ]; then