Made the script use bash.

This commit is contained in:
cronyakatsuki 2022-10-30 16:07:52 +01:00
parent 56ca92cb33
commit 510538cb3a

View File

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/bash
# script to run a menu prompt when having more than 2 players since # script to run a menu prompt when having more than 2 players since
# playerctl is bad at managing more than one player at the same time # playerctl is bad at managing more than one player at the same time
@ -15,8 +15,8 @@ if [ "$instances" = "0" ]; then
exit exit
elif [ "$instances" -lt "2" ]; then elif [ "$instances" -lt "2" ]; then
playerctl $command playerctl $command
elif [ "$slock" == "running" ]; then elif [ "$slock" = "running" ]; then
if [ "$command" == "play-pause" ]; then if [ "$command" = "play-pause" ]; then
if playerctl status -a | grep -i "Playing" > /dev/null; then if playerctl status -a | grep -i "Playing" > /dev/null; then
playerctl pause -a playerctl pause -a
else else