Made the script use bash.
This commit is contained in:
parent
56ca92cb33
commit
510538cb3a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user