From 2af091c4f78b52880096d2a4c7e7383b471dbe7e Mon Sep 17 00:00:00 2001 From: Alexander Von Moll Date: Sat, 6 Oct 2018 22:42:21 -0400 Subject: Changed pamixer to pulsemixer --- .scripts/i3volume | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to '.scripts/i3volume') diff --git a/.scripts/i3volume b/.scripts/i3volume index d0b054e..6dc72cd 100755 --- a/.scripts/i3volume +++ b/.scripts/i3volume @@ -2,11 +2,11 @@ case $BLOCK_BUTTON in 1) $TERMINAL -e pulsemixer & disown ;; - 3) pamixer -t ;; - 4) pamixer -i 5 ;; - 5) pamixer -d 5 ;; + 3) pulsemixer --toggle-mute ;; + 4) pulsemixer --change-volume +5 ;; + 5) pulsemixer --change-volume -5 ;; esac -printpastatus() { [[ $(pamixer --get-mute) = "true" ]] && echo -n 🔇 && exit -echo 🔊 $(pamixer --get-volume)% ;} +printpastatus() { [[ $(pulsemixer --get-mute) = 1 ]] && echo -n 🔇 " " && exit +echo 🔊 $(pulsemixer --get-volume | sed -e "s/\s[0-9][0-9]*//g")% ;} printpastatus -- cgit v1.3.1