volume control changed to amixer

This commit is contained in:
bvn13 2020-06-25 14:19:50 +03:00
parent 071439bebe
commit 3aa4d2a72f

41
config
View File

@ -176,18 +176,31 @@ bindsym --release Print exec --no-startup-id scrot -m '%Y%m%d-
bindsym --release $mod+Print exec --no-startup-id scrot -s '/tmp/%F_%T_$wx$h.png' -e 'xclip -selection clipboard -target image/png -i $f'
### Audio volume
bindsym XF86AudioMute exec --no-startup-id "pactl set-sink-mute 1 toggle"
bindsym XF86AudioRaiseVolume exec --no-startup-id "pactl set-sink-mute 1 false ; pactl set-sink-volume 1 +5%"
bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id "pactl set-sink-mute 1 false ; pactl set-sink-volume 1 +1%"
bindsym XF86AudioLowerVolume exec --no-startup-id "pactl set-sink-mute 1 false ; pactl -- set-sink-volume 1 -5%"
bindsym Shift+XF86AudioLowerVolume exec --no-startup-id "pactl set-sink-mute 1 false ; pactl -- set-sink-volume 1 -1%"
bindsym XF86AudioMicMute exec --no-startup-id "pactl set-source-mute 1 toggle"
#bindsym --release XF86AudioMute exec --no-startup-id "pactl set-sink-mute 1 toggle"
#bindsym --release XF86AudioRaiseVolume exec --no-startup-id "pactl set-sink-mute 1 false ; pactl set-sink-volume 1 +5%"
#bindsym --release Shift+XF86AudioRaiseVolume exec --no-startup-id "pactl set-sink-mute 1 false ; pactl set-sink-volume 1 +1%"
#bindsym --release XF86AudioLowerVolume exec --no-startup-id "pactl set-sink-mute 1 false ; pactl -- set-sink-volume 1 -5%"
#bindsym --release Shift+XF86AudioLowerVolume exec --no-startup-id "pactl set-sink-mute 1 false ; pactl -- set-sink-volume 1 -1%"
#bindsym --release XF86AudioMicMute exec --no-startup-id "pactl set-source-mute 1 toggle"
bindsym --release XF86AudioMute exec --no-startup-id "amixer -D pulse sset Master toggle"
bindsym --release XF86AudioRaiseVolume exec --no-startup-id "amixer -D pulse sset Master 10%+"
bindsym --release Shift+XF86AudioRaiseVolume exec --no-startup-id "amixer -D pulse sset Master 5%+"
bindsym --release XF86AudioLowerVolume exec --no-startup-id "amixer -D pulse sset Master 10%-"
bindsym --release Shift+XF86AudioLowerVolume exec --no-startup-id "amixer -D pulse sset Master 5%-"
bindsym --release XF86AudioMicMute exec --no-startup-id "amixer -D pulse sset Capture toggle"
mode "mode_mic" {
bindsym Up exec --no-startup-id "pactl set-source-mute 1 false ; pactl set-source-volume 1 +5%"
bindsym Shift+Up exec --no-startup-id "pactl set-source-mute 1 false ; pactl set-source-volume 1 +1%"
bindsym Down exec --no-startup-id "pactl set-source-mute 1 false ; pactl -- set-source-volume 1 -5%"
bindsym Shift+Down exec --no-startup-id "pactl set-source-mute 1 false ; pactl -- set-source-volume 1 -1%"
# bindsym Up exec --no-startup-id "pactl set-source-mute 1 false ; pactl set-source-volume 1 +5%"
# bindsym Shift+Up exec --no-startup-id "pactl set-source-mute 1 false ; pactl set-source-volume 1 +1%"
# bindsym Down exec --no-startup-id "pactl set-source-mute 1 false ; pactl -- set-source-volume 1 -5%"
# bindsym Shift+Down exec --no-startup-id "pactl set-source-mute 1 false ; pactl -- set-source-volume 1 -1%"
bindsym Up exec --no-startup-id "amixer -D pulse sset Capture 10%+"
bindsym Shift+Up exec --no-startup-id "amixer -D pulse sset Capture 5%+"
bindsym Down exec --no-startup-id "amixer -D pulse sset Capture 10%-"
bindsym Shift+Down exec --no-startup-id "amixer -D pulse sset Capture 5%-"
# return to default mode
bindsym Return mode "default"
@ -227,3 +240,11 @@ exec "compton -c -r4 -l-6 -t-4 -z -b -G -C -e0.85 -f -D30 -I0.45 -O0.45 --paint-
exec --no-startup-id hsetroot -solid '#000000'
exec --no-startup-id dunst
exec --no-startup-id nm-applet
# windows managing
bindsym $mod+x [urgent=latest] focus
bindsym $mod+p exec pavucontrol
for_window [class="(?i)pavucontrol"] floating enable