dotfiles/x11/config/eww/scripts/home/nowplaying-title.sh
2026-04-07 17:56:10 -07:00

15 lines
426 B
Bash
Executable file

#!/bin/bash
#playerctl --follow metadata --format '{{ title }}' | {
playerctl --follow metadata --format '{{ trunc(title,23) }}'
#playerctl metadata --format '{{ title }}\n{{ artist }}' | {
# while read -r nowplaying_title; do
# if [ ${#nowplaying_title} -ge 45 ];then
# echo "${nowplaying_title:0:40}…"
# else
# echo "${nowplaying_title}"
# fi
# echo "${nowplaying_title}" | head -c 50;
# done
#}