summaryrefslogtreecommitdiffstats
path: root/.local/bin/status/sb-mpd
diff options
context:
space:
mode:
authorJoe <bousset.rudy@gmail.com>2022-08-16 16:55:51 +0200
committerJoe <bousset.rudy@gmail.com>2022-08-16 16:55:51 +0200
commit19739646a4480abe42c6ac321a0ebdd26e7c8e3b (patch)
tree64a9a9cc8ee1c76ef6e67503999cdd2ba79c82a9 /.local/bin/status/sb-mpd
parentin progress (diff)
downloaddotfiles-bsd-19739646a4480abe42c6ac321a0ebdd26e7c8e3b.tar.gz
dotfiles-bsd-19739646a4480abe42c6ac321a0ebdd26e7c8e3b.tar.bz2
dotfiles-bsd-19739646a4480abe42c6ac321a0ebdd26e7c8e3b.tar.xz
dotfiles-bsd-19739646a4480abe42c6ac321a0ebdd26e7c8e3b.tar.zst
dotfiles-bsd-19739646a4480abe42c6ac321a0ebdd26e7c8e3b.zip
update
Diffstat (limited to '.local/bin/status/sb-mpd')
-rwxr-xr-x.local/bin/status/sb-mpd5
1 files changed, 3 insertions, 2 deletions
diff --git a/.local/bin/status/sb-mpd b/.local/bin/status/sb-mpd
index 0f65bfa..4fad1c2 100755
--- a/.local/bin/status/sb-mpd
+++ b/.local/bin/status/sb-mpd
@@ -1,10 +1,11 @@
+
#!/bin/sh
mp=$(mpc status)
icon=$(echo "$mp" | sed -n 2p | sed -E 's/(^|\])[^[]*($|\[)//g')
case $icon in
- "playing") icon="" ;;
- "paused") icon="" ;;
+ "playing") icon="契" ;;
+ "paused") icon="" ;;
*) return ;;
esac
printf "%s %s" "$icon" "$(echo "$mp" | head -n1)"