tmux-gspot/scripts/get_now_playing.sh

15 lines
178 B
Bash
Raw Permalink Normal View History

2023-01-20 01:54:30 +00:00
#!/bin/bash
set -euo pipefail
2024-02-19 07:54:18 +00:00
song="$(gspot nowplaying)"
2023-01-20 01:54:30 +00:00
if [[ $song =~ ['⏸'] ]]; then
echo$song | sed 's/[⏸▶]//g'
else
echo $song | sed 's/[⏸▶]//g'
fi