2 Commits 40b518278d ... a63bc375af

Author SHA1 Message Date
  demure a63bc375af Added note, updated mic mute, added fancy mic mute 2 years ago
  demure c81d6c4c11 Tweaked warning levels for my x1 nano 2 years ago
2 changed files with 8 additions and 6 deletions
  1. 5 3
      config/i3/config
  2. 3 3
      config/polybar/scripts/tmb_check.sh

+ 5 - 3
config/i3/config

@@ -210,6 +210,8 @@ workspace_auto_back_and_forth yes
         ### Pulse Audio Controls ### {{{
         ## Softvol increase possible with pactl
         ## NOTE: due to HDMI output connect/disconnects causing sink number changes, sink '0' is now <strike>a command substitution<strike> @DEFAULT_SINK@
+        ## NOTE: My thinkpad usb c gen 2 dock needs something to run the following to update the default sink:
+        ##       pactl set-default-sink $(pactl list short sinks | awk '/RUNNING/ {print $1}')
         bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +5%          ## Increase sound volume
         bindsym Shift+XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +1%    ## Fine increase sound volume
         bindsym $mod+XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ 100%    ## Set volume to "100%"
@@ -217,9 +219,9 @@ workspace_auto_back_and_forth yes
         bindsym Shift+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -1%    ## Fine decrease sound volume
         bindsym $mod+XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ 50%     ## Set volume to "50%"
 
-        bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle                ## mute sound
-        #bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute 1 toggle                        ## mute mic     ## x270
-        bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute 5 toggle                        ## mute mic     ## x1nano built in mike
+        bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle                ## Mute sound
+        bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle         ## Toggle default mic mute
+        bindsym $mod+XF86AudioMicMute exec --no-startup-id pactl list short sources | awk '/input.*RUNNING/ {system("pactl set-source-mute " $1 " toggle")}'     ## Find and mure mics
         ### End Pulse Audio ### }}}
 
         ### Toggle redshift ### {{{

+ 3 - 3
config/polybar/scripts/tmb_check.sh

@@ -36,9 +36,9 @@ fi
 
 ## Alert Levels
 ## Note: levels higher than 'high' will not be highlighted.
-ALERT_LOW=11
-ALERT_MID=22
-ALERT_HIGH=33
+ALERT_LOW=10
+ALERT_MID=15
+ALERT_HIGH=25
 
 
 ### Batteries ### {{{