]> git.donarmstrong.com Git - x_base.git/commitdiff
propertly toggle mic and run rfkill
authorDon Armstrong <don@donarmstrong.com>
Fri, 18 Mar 2016 21:32:01 +0000 (14:32 -0700)
committerDon Armstrong <don@donarmstrong.com>
Wed, 4 May 2016 16:45:14 +0000 (09:45 -0700)
.config/i3/config_base

index c0af85a8c0ca1561b4ab0f3834c7efc4f1f315b8..e9d12986840407e33790a65ad2a0b42bea03df6a 100644 (file)
@@ -170,14 +170,14 @@ bindsym $mod+r mode "resize"
 bindsym XF86AudioRaiseVolume exec --no-startup-id sh -c "pactl set-sink-volume `pacmd list-sinks | awk -F': ' '/* index/{print $2}'` +5%" #increase sound volume
 bindsym XF86AudioLowerVolume exec --no-startup-id sh -c "pactl set-sink-volume `pacmd list-sinks | awk -F': ' '/* index/{print $2}'` -5%" #decrease sound volume
 bindsym XF86AudioMute exec --no-startup-id sh -c "pactl set-sink-mute `pacmd list-sinks | awk -F': ' '/* index/{print $2}'` toggle" # mute sound
 bindsym XF86AudioRaiseVolume exec --no-startup-id sh -c "pactl set-sink-volume `pacmd list-sinks | awk -F': ' '/* index/{print $2}'` +5%" #increase sound volume
 bindsym XF86AudioLowerVolume exec --no-startup-id sh -c "pactl set-sink-volume `pacmd list-sinks | awk -F': ' '/* index/{print $2}'` -5%" #decrease sound volume
 bindsym XF86AudioMute exec --no-startup-id sh -c "pactl set-sink-mute `pacmd list-sinks | awk -F': ' '/* index/{print $2}'` toggle" # mute sound
-bindsym XF86AudioMicMute exec --no-startup-id sh -c "pactl set-source-mute `pacmd list-sinks | awk -F': ' '/* index/{print $2}'` toggle" # mute mic
+bindsym XF86AudioMicMute exec --no-startup-id sh -c "pactl set-source-mute `pacmd list-sources | awk -F': ' '/* index/{print $2}'` toggle" # mute mic
 
 # brightness
 bindsym XF86MonBrightnessUp exec xbacklight -inc 5 # increase screen brightness
 bindsym XF86MonBrightnessDown exec xbacklight -dec 5 # decrease screen brightness
 
 # seach/tools/wlan/display
 
 # brightness
 bindsym XF86MonBrightnessUp exec xbacklight -inc 5 # increase screen brightness
 bindsym XF86MonBrightnessDown exec xbacklight -dec 5 # decrease screen brightness
 
 # seach/tools/wlan/display
-bindsym XF86WLAN exec sh -c 'if /usr/sbin/rfkill list|grep -q "blocked: yes"; then /usr/sbin/rfkill unblock all; else /usr/sbin/rfkill block all; fi;' 
+bindsym XF86WLAN exec sh -c "if /usr/sbin/rfkill list|grep -q 'blocked yes' \; then /usr/sbin/rfkill unblock all \; else /usr/sbin/rfkill block all \; fi;"
 #bindsym XF86Display exec presentation_mode
 
 # Start i3bar to display a workspace bar (plus the system information i3status
 #bindsym XF86Display exec presentation_mode
 
 # Start i3bar to display a workspace bar (plus the system information i3status