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
# playerctl is bad at managing more than one player at the same time
@ -15,8 +15,8 @@ if [ "$instances" = "0" ]; then
exit
elif [ "$instances" -lt "2" ]; then
playerctl $command
elif [ "$slock" == "running" ]; then
if [ "$command" == "play-pause" ]; then
elif [ "$slock" = "running" ]; then
if [ "$command" = "play-pause" ]; then
if playerctl status -a | grep -i "Playing" > /dev/null; then
playerctl pause -a
else