feat: remove alsa-utils
amixer -> pulsemixer
This commit is contained in:
parent
6b320e6249
commit
5adce8c287
@ -2,7 +2,6 @@ abcde
|
||||
adobe-source-han-sans-cn-fonts
|
||||
adobe-source-han-sans-jp-fonts
|
||||
alsa-plugins
|
||||
alsa-utils
|
||||
android-tools
|
||||
android-udev
|
||||
arandr
|
||||
|
@ -2,8 +2,10 @@
|
||||
|
||||
# System stuff
|
||||
|
||||
super + {F1, F2, F3}
|
||||
amixer --quiet set Master {toggle, 5%-, 5%+}; refbar; audio_notify
|
||||
super + F1
|
||||
pulsemixer --toggle-mute; audio_notify
|
||||
super + {F2, F3}
|
||||
pulsemixer --change-volume {-5, +5}; audio_notify
|
||||
|
||||
super + {F5, F6}
|
||||
sbacklight {dec,inc}
|
||||
|
@ -10,10 +10,10 @@
|
||||
######################################################################
|
||||
|
||||
|
||||
level="$(amixer sget Master | awk -F "[][]" ' { printf "%s", $2 }' | awk -F "%" '{printf $1}')"
|
||||
muted="$(amixer sget Master | awk -F "[][]" '/%/ { printf "%4s", $4 }' | awk '{printf $1}')"
|
||||
level="$(pulsemixer --get-volume | awk -F " " '{ printf "%d", $1 }')"
|
||||
muted="$(pulsemixer --get-mute)"
|
||||
|
||||
if [ "$muted" = "off" ]; then
|
||||
if [ "1" = "$muted" ]; then
|
||||
dunstify -r 100002 "Sound muted" "$level%"
|
||||
else
|
||||
case "$level" in
|
||||
|
Reference in New Issue
Block a user