Files
dotfiles/i3/scripts/spotify-control

21 lines
245 B
Plaintext
Raw Normal View History

2018-01-29 12:47:13 +01:00
#!/bin/bash
case "$1" in
toggle)
2020-12-20 21:52:25 +01:00
cmd="play-pause"
2018-01-29 12:47:13 +01:00
;;
next)
2020-12-20 21:52:25 +01:00
cmd="next"
2018-01-29 12:47:13 +01:00
;;
previous)
2020-12-20 21:52:25 +01:00
cmd="previous"
2018-01-29 12:47:13 +01:00
;;
*)
echo "wrong argument $1"
exit 1
;;
esac
playerctl -p spotify "${cmd}"
2018-01-29 12:47:13 +01:00
~/.i3/scripts/bar-update spotify