mirror of
https://github.com/HerrCraziDev/dotfiles.git
synced 2025-12-18 03:36:16 +01:00
fucking mess
This commit is contained in:
10
tmux/.tmux/mediaplaying.sh
Executable file
10
tmux/.tmux/mediaplaying.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
playing=$(playerctl -a metadata --format='{{status}}:{{artist}} - {{title}}' | grep 'Playing' | sed -e "s/^Playing://")
|
||||
|
||||
if [ -n "$playing" ]; then
|
||||
echo $playing | sed -E 's/(.{30})(.{1,})$/\1.../'
|
||||
return 0
|
||||
else
|
||||
return 1
|
||||
fi
|
||||
Reference in New Issue
Block a user