blob: d678ed1ae4ffd96408cda4f40e79676cbbee3d59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/bash
status=$(playerctl status)
song=$(playerctl metadata title)
album=" (`playerctl metadata album`)"
if [ "$album" == " ()" ]
then
album=""
fi
if [ $status = "Playing" ]
then
echo " Playing | $song$album by $(playerctl metadata artist) "
elif [ $status = "Paused" ]
then
echo " Paused | $song$album by $(playerctl metadata artist) "
else
echo " Stopped "
fi
|