aboutsummaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/tsarbar_status.sh20
1 files changed, 10 insertions, 10 deletions
diff --git a/.local/bin/tsarbar_status.sh b/.local/bin/tsarbar_status.sh
index 3fe67fb..b1eeb83 100755
--- a/.local/bin/tsarbar_status.sh
+++ b/.local/bin/tsarbar_status.sh
@@ -74,16 +74,16 @@ done &
playerctl -F metadata -f "{{lc(status)}} {{lc(title)}} - {{lc(artist)}}" \
| while read -r line; do
- status=`echo $line | awk '{ print $1 }'`
- case "$status" in
- "paused")
- tsarc set player -text "no media"
- ;;
- "playing")
- tsarc set player -text \
- "`echo $line | awk 'match($0, $1) {print substr($0, RSTART+RLENGTH)}' | trim`"
- ;;
- esac
+ status=`echo $line | awk '{ print $1 }'`
+ case "$status" in
+ "paused")
+ tsarc set player -text "no media"
+ ;;
+ "playing")
+ tsarc set player -text \
+ "`echo $line | awk 'match($0, $1) {print substr($0, RSTART+RLENGTH)}' | trim`"
+ ;;
+ esac
done &
while true; do