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 | |
| parent | 5aa87510e5d5fa91d4de9d969531becb212101a8 (diff) | |
| -rw-r--r-- | ar/.config/shell/aliasrc | 2 | ||||
| -rwxr-xr-x | ar/.local/bin/statusbar/sb-mpdup | 2 | ||||
| -rwxr-xr-x | ar/.local/bin/statusbar/sb-playerctlup | 7 |
3 files changed, 10 insertions, 1 deletions
diff --git a/ar/.config/shell/aliasrc b/ar/.config/shell/aliasrc index a6dd8b5..9b9c064 100644 --- a/ar/.config/shell/aliasrc +++ b/ar/.config/shell/aliasrc @@ -505,3 +505,5 @@ alias ylogr='ylog -s recordings -c us | grep $(LC_TIME=C date +%d/%b) | grep -E alias ylogR='ylog -s recordings -c us | grep $(LC_TIME=C date -d "1 days ago" +%d/%b) | grep -E "[0-9]{2}:[0-9]{2}:[0-9]{2} "' alias ylogT='ylog -s recordings -c us | grep $(LC_TIME=C date -d "2 days ago" +%d/%b) | grep -E "[0-9]{2}:[0-9]{2}:[0-9]{2} "' alias ylogu='ylog -s diary -c us' +alias yloga='ylogd; ylogr; ylogp' +alias ylogA='ylogD; ylogR; ylogP' diff --git a/ar/.local/bin/statusbar/sb-mpdup b/ar/.local/bin/statusbar/sb-mpdup index dd49322..99e314e 100755 --- a/ar/.local/bin/statusbar/sb-mpdup +++ b/ar/.local/bin/statusbar/sb-mpdup @@ -8,5 +8,5 @@ export MPD_HOST while :; do mpc idle >/dev/null || continue - kill -55 "$(pidof "${STATUSBAR:-dwmblocks}")" 2>/dev/null + kill -54 "$(pidof "${STATUSBAR:-dwmblocks}")" 2>/dev/null done 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 |
