diff options
| author | Alexander Von Moll <avonmoll@gmail.com> | 2018-10-06 22:42:21 -0400 |
|---|---|---|
| committer | Alexander Von Moll <avonmoll@gmail.com> | 2018-10-06 22:42:21 -0400 |
| commit | 2af091c4f78b52880096d2a4c7e7383b471dbe7e (patch) | |
| tree | c3dd43da8d6611003fa4c240fac1ddc5ae086f88 /.scripts | |
| parent | f73b483d9d7c955ddbc40f82d3e4a3f6708d7a3b (diff) | |
| download | eibhear-2af091c4f78b52880096d2a4c7e7383b471dbe7e.tar.gz eibhear-2af091c4f78b52880096d2a4c7e7383b471dbe7e.tar.zst eibhear-2af091c4f78b52880096d2a4c7e7383b471dbe7e.zip | |
Changed pamixer to pulsemixer
Diffstat (limited to '.scripts')
| -rwxr-xr-x | .scripts/i3volume | 10 | ||||
| -rwxr-xr-x | .scripts/lmc | 8 |
2 files changed, 9 insertions, 9 deletions
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 diff --git a/.scripts/lmc b/.scripts/lmc index f0153a8..f506e9a 100755 --- a/.scripts/lmc +++ b/.scripts/lmc @@ -6,10 +6,10 @@ newvol="pkill -RTMIN+10 i3blocks" # Uncomment if i3mpdupdate isn't running: case "$1" in - "up") pamixer --allow-boost -i "$2" ; $newvol ;; - "down") pamixer --allow-boost -d "$2" ; $newvol ;; - "mute") pamixer --allow-boost -t ; $newvol ;; - "truemute") pamixer --allow-boost -m ; $newvol ;; + "up") pulsemixer --change-volume +"$2" ; $newvol ;; + "down") pulsemixer --change-volume -"$2" ; $newvol ;; + "mute") pulsemixer --toggle-mute ; $newvol ;; + "truemute") pulsemixer --mute ; $newvol ;; "toggle") mpc toggle ;; "pause") mpc pause ; pauseallmpv ;; "forward") mpc seek +"$2" ;; |
