pub / sguard

Suspend Guard for the PhoneShell "Phosh"
git clone https://https://src.jayvii.de/pub/sguard.git
Home | Log | Files | Exports | Refs | README | RSS

commit 5d72e9385ccfc875de95bdb37c3e7b185385608d
parent 66f99a6912aee5cb2688ba76e9c7c276efa2218c
Author: jayvii <jayvii[AT]noreply[DOT]codeberg.org>
Date:   Sun, 20 Aug 2023 17:05:06 +0000

Merge pull request 'Use pactl instead of pacmd' (#1) from jwillikers/pinephone-scripts:use-pactl into main

Reviewed-on: https://codeberg.org/jayvii/pinephone-scripts/pulls/1

Diffstat:
Msguard/sguard.sh | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sguard/sguard.sh b/sguard/sguard.sh @@ -6,9 +6,9 @@ # Checks ---------------------------------------------------------------------- -# is pacmd installed? -if [[ -z `whereis pacmd | awk '{ print $2 }'` ]]; then - echo "pacmd is required for sguard to function properly." +# is pactl installed? +if [[ -z `whereis pactl | awk '{ print $2 }'` ]]; then + echo "pactl is required for sguard to function properly." exit 1; fi @@ -30,7 +30,7 @@ fi # check player state. function check_player_state { - if [[ -z `pacmd list sinks | grep -E "(s|S)tate: RUNNING$"` ]]; then + if [[ -z `pactl list sinks | grep -E "(s|S)tate: RUNNING$"` ]]; then echo false else echo true