From 510538cb3a4bd86a9dacc74c75c9eff83c7de044 Mon Sep 17 00:00:00 2001 From: cronyakatsuki <64900606+cronyakatsuki@users.noreply.github.com> Date: Sun, 30 Oct 2022 16:07:52 +0100 Subject: [PATCH] Made the script use bash. --- dmenu-playerctl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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