diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-02-27 17:28:51 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-02-27 17:28:51 +0900 |
| commit | f31caaf57e83d2d6675f58ce12155194210dd180 (patch) | |
| tree | aeb660316f9e34c254455383737ccb717d5a4525 /ar/.local/bin/statusbar/sb-playerctlup | |
| parent | 5aa87510e5d5fa91d4de9d969531becb212101a8 (diff) | |
Diffstat (limited to 'ar/.local/bin/statusbar/sb-playerctlup')
| -rwxr-xr-x | ar/.local/bin/statusbar/sb-playerctlup | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ar/.local/bin/statusbar/sb-playerctlup b/ar/.local/bin/statusbar/sb-playerctlup new file mode 100755 index 0000000..d28e6e3 --- /dev/null +++ b/ar/.local/bin/statusbar/sb-playerctlup @@ -0,0 +1,7 @@ +#!/bin/sh + +# Updates the music statusbar module when a playerctl-compatible player changes state + +playerctl -aF status 2>/dev/null | while read -r _; do + kill -54 "$(pidof "${STATUSBAR:-dwmblocks}")" 2>/dev/null +done |
