Initial
This commit is contained in:
commit
c8734e660a
392 changed files with 21043 additions and 0 deletions
20
.config/waybar/custom/spotify/play-pause.sh
Normal file
20
.config/waybar/custom/spotify/play-pause.sh
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
|
||||
status=$(playerctl -p spotify status)
|
||||
|
||||
if [[ -z $status ]]
|
||||
then
|
||||
exit
|
||||
fi
|
||||
|
||||
if [[ $status == "Playing" ]]
|
||||
then
|
||||
echo "{\"class\": \"playing\", \"text\": \"\", \"tooltip\": \"$album\"}"
|
||||
exit
|
||||
fi
|
||||
|
||||
if [[ $status == "Paused" ]]
|
||||
then
|
||||
echo "{\"class\": \"paused\", \"text\": \"\", \"tooltip\": \"$album\"}"
|
||||
exit
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue