feat: remove alsa-utils

amixer -> pulsemixer
This commit is contained in:
David JULIEN 2021-02-13 20:02:41 +01:00
parent 6b320e6249
commit 5adce8c287
4 changed files with 8 additions and 7 deletions

View File

@ -2,7 +2,6 @@ abcde
adobe-source-han-sans-cn-fonts adobe-source-han-sans-cn-fonts
adobe-source-han-sans-jp-fonts adobe-source-han-sans-jp-fonts
alsa-plugins alsa-plugins
alsa-utils
android-tools android-tools
android-udev android-udev
arandr arandr

View File

@ -2,8 +2,10 @@
# System stuff # System stuff
super + {F1, F2, F3} super + F1
amixer --quiet set Master {toggle, 5%-, 5%+}; refbar; audio_notify pulsemixer --toggle-mute; audio_notify
super + {F2, F3}
pulsemixer --change-volume {-5, +5}; audio_notify
super + {F5, F6} super + {F5, F6}
sbacklight {dec,inc} sbacklight {dec,inc}

View File

@ -10,10 +10,10 @@
###################################################################### ######################################################################
level="$(amixer sget Master | awk -F "[][]" ' { printf "%s", $2 }' | awk -F "%" '{printf $1}')" level="$(pulsemixer --get-volume | awk -F " " '{ printf "%d", $1 }')"
muted="$(amixer sget Master | awk -F "[][]" '/%/ { printf "%4s", $4 }' | awk '{printf $1}')" muted="$(pulsemixer --get-mute)"
if [ "$muted" = "off" ]; then if [ "1" = "$muted" ]; then
dunstify -r 100002 "Sound muted" "$level%" dunstify -r 100002 "Sound muted" "$level%"
else else
case "$level" in case "$level" in

View File

@ -9,7 +9,7 @@ redshift &
dunst -follow mouse &> /dev/null & #temp fix dunst -follow mouse &> /dev/null & #temp fix
# MPD daemon start (if no other user instance exists) # MPD daemon start (if no other user instance exists)
[ ! -s ~/.config/mpd/pid ] && mpd [ ! -s ~/.config/mpd/pid ] && mpd
amixer set Master 50% pulsemixer --set-volume 50
sbacklight set 3 & sbacklight set 3 &
bat_notify & bat_notify &
AC_notify & AC_notify &