diff --git a/dmenu-playerctl b/dmenu-playerctl index 7152a86..288d0a0 100755 --- a/dmenu-playerctl +++ b/dmenu-playerctl @@ -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