Small changes, tmux shortcuts

This commit is contained in:
2021-12-19 03:55:15 +01:00
parent 932cf6ac6b
commit 3464039d98
3 changed files with 8 additions and 2 deletions

View File

@@ -1,10 +1,11 @@
#!/bin/sh
if ! command -v playerctl; then
if ! hash playerctl 2>/dev/null; then
return 1
fi
playing=$(playerctl -a metadata --format='{{status}}:{{artist}} - {{title}}' | grep 'Playing' | sed -e "s/^Playing://")
#echo $playing
if [ -n "$playing" ]; then
echo $playing | sed -E 's/(.{30})(.{1,})$/\1.../'