diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-03-24 15:41:17 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-03-24 15:41:17 +0900 |
| commit | d79e2e239245ffda8c4f892c113fe37ce0d0d43a (patch) | |
| tree | edba0fd8203a1fccef25956a04ec48bcd7a79309 /ar/.local | |
| parent | 7ec370e2ef17da560d749273a164e549df0bf1e6 (diff) | |
modified statusbar/sb-playerctlup
Diffstat (limited to 'ar/.local')
| -rwxr-xr-x | ar/.local/bin/statusbar/sb-playerctlup | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ar/.local/bin/statusbar/sb-playerctlup b/ar/.local/bin/statusbar/sb-playerctlup index 123a3a4..744abbd 100755 --- a/ar/.local/bin/statusbar/sb-playerctlup +++ b/ar/.local/bin/statusbar/sb-playerctlup @@ -1,7 +1,9 @@ #!/bin/sh -# Updates the music statusbar module when a playerctl-compatible player changes state +# Updates the music statusbar module when a playerctl-compatible player changes -playerctl -aF status 2>/dev/null | while read -r _; do - kill -52 "$(pidof "${STATUSBAR:-dwmblocks}")" 2>/dev/null -done +signal() { kill -52 "$(pidof "${STATUSBAR:-dwmblocks}")" 2>/dev/null; } + +playerctl -aF status 2>/dev/null | while read -r _; do signal; done & +playerctl -aF metadata -f '{{playerName}}' 2>/dev/null | while read -r _; do signal; done & +wait |
