summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-06-23 18:22:51 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-06-23 18:22:51 +0800
commitf2bf23af90bb69f5ac5408f10df4c77a4639eb93 (patch)
treef24c6a2efe4df4c3d758c0a7bb6ade5434a74452
parent891b421cabd5d2bec6ac76e2ebd0f75dd1f0a6c9 (diff)
mpc -> playerctl. made it run even if prev command fails(playerctl will fail if no media is playing
-rwxr-xr-xdot-config/rofi/scripts/rofi_powermenu4
1 files changed, 2 insertions, 2 deletions
diff --git a/dot-config/rofi/scripts/rofi_powermenu b/dot-config/rofi/scripts/rofi_powermenu
index 3fa27e93..63bb21c6 100755
--- a/dot-config/rofi/scripts/rofi_powermenu
+++ b/dot-config/rofi/scripts/rofi_powermenu
@@ -154,7 +154,7 @@ confirm_run2 () {
confirm_run3 () {
selected="$(confirm_exit3)"
if [[ "$selected" == "$yes" ]]; then
- ${1} && ${2} && ${3}
+ ${1}; ${2} && ${3}
else
exit
fi
@@ -205,7 +205,7 @@ run_cmd() {
elif [[ "$1" == '--opt2' ]]; then
confirm_run2 'bspc quit'
elif [[ "$1" == '--opt3' ]]; then
- confirm_run3 'mpc -q pause' 'systemctl suspend' #'betterlockscreen --suspend' 'pulsemixer --unmute' # 'pulsemixer --mute'
+ confirm_run3 'playerctl pause' 'systemctl suspend' #'betterlockscreen --suspend' 'pulsemixer --unmute' # 'pulsemixer --mute'
elif [[ "$1" == '--opt4' ]]; then
confirm_run4 'systemctl hibernate'
elif [[ "$1" == '--opt5' ]]; then