15 lines
178 B
Bash
15 lines
178 B
Bash
|
#!/bin/bash
|
||
|
set -euo pipefail
|
||
|
|
||
|
song="$(gospt nowplaying)"
|
||
|
|
||
|
if [[ $song =~ ['⏸'] ]]; then
|
||
|
|
||
|
echo $song | sed 's/[⏸▶]//g'
|
||
|
|
||
|
else
|
||
|
|
||
|
echo $song | sed 's/[⏸▶]//g'
|
||
|
|
||
|
fi
|