made spotify script only track spotify playerctl
This commit is contained in:
parent
750a06da92
commit
d28159afb8
@ -1,7 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
if [ "$1" == '--toggle' ]; then
|
if [ "$1" == '--toggle' ]; then
|
||||||
playerctl play-pause
|
playerctl --player=spotify play-pause
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$1" == "--scroll" ]] ; then
|
if [[ "$1" == "--scroll" ]] ; then
|
||||||
@ -12,7 +12,7 @@ if [[ "$1" == "--scroll" ]] ; then
|
|||||||
--match-command "playerctl status" \
|
--match-command "playerctl status" \
|
||||||
--match-text "Playing" "--scroll 1" \
|
--match-text "Playing" "--scroll 1" \
|
||||||
--match-text "Paused" "--scroll 0" \
|
--match-text "Paused" "--scroll 0" \
|
||||||
"playerctl metadata -s --format '{{artist}} - {{title}}'" &
|
"playerctl --player=spotify metadata -s --format '{{artist}} - {{title}}'" &
|
||||||
wait
|
wait
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user