Skip to content

Commit 72434ab

Browse files
committed
Add Spotify widget to xmobar
1 parent c5c4bb8 commit 72434ab

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

get-spotify

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
3+
isrunning=$(pidof spotify)
4+
[ ! -z "$isrunning" ] \
5+
&& artist=`playerctl metadata artist` \
6+
&& song=`playerctl metadata title | cut -c 1-60` \
7+
&& echo -n "$artist :: $song"

0 commit comments

Comments
 (0)