mirror of
https://github.com/HerrCraziDev/dotfiles.git
synced 2025-12-16 02:46:17 +01:00
Small changes, tmux shortcuts
This commit is contained in:
@@ -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.../'
|
||||
|
||||
Reference in New Issue
Block a user