lots of fixes, improvements, t12 stuff
[distro-setup] / i3-sway / common.conf
index 738cd0ddd7ba8ed48190c3c3a8f902c618f65378..40b1bb5d3aafdf4b90df48110b4b058f699290b8 100644 (file)
@@ -30,8 +30,6 @@ bindsym $mod+3 $ex "i3-split-maybe"; exec "abrowser"
 #bindsym $mod+3 exec "abrowser 2>&1 >/tmp/l"
 #bindsym $mod+3 exec "abrowser -no-remote -P sfw"
 bindsym $mod+4 $ex "i3-split-maybe"; exec "abrowser -no-remote -P firefox-main-profile"
-# todo: figure out a stream delay & way to cut the stream.
-# settings, advanced, stream delay
 bindsym $mod+5 $ex "/a/bin/ds/stream-interlude"
 bindsym $mod+6 $ex "i3-split-maybe"; exec "/usr/local/bin/start-tor-browser"
 bindsym $mod+7 $ex "/a/bin/ds/laptop-xrandr"
@@ -110,15 +108,22 @@ bindsym $mod+z workspace 5
 bindsym $mod+Shift+x move container to workspace 6
 bindsym $mod+x workspace 6
 
-
-# todo, in newer i3, consider split toggle
 bindsym $mod+v split vertical
 bindsym $mod+Shift+v split horizontal
-#
-## temp for testing, add antying here
-#bindsym $mod+shift+5
 
+# 122 = XF86AudioLowerVolume, keyboardio function + t
+bindcode 122 $ex "toggle-mute unmute"; mode "ptt"
+mode "ptt" {
+# normally, if we hold down a button, it will start automatically
+# repeating itself, up and down events.  But this stops that from
+# happening. Based on testing, making mode be 1st or 2nd doesn't matter.
+bindcode --release 122 $ex "toggle-mute mute"; mode "default"
+}
+# 171 = XF86AudioNext, keyboardio function + g
+bindcode 171 $ex "toggle-mute unmute"
 
+## temp for testing, add antying here
+#bindsym $mod+shift+5 $ex "/a/a.sh"
 
 
 bindsym $mod+b $ex i3-pull term
@@ -176,6 +181,8 @@ bindsym $mod+shift+semicolon $ex /b/ds/stream-clip sad
 # keybinds will screw up other laptop brightness keys.
 bindsym XF86MonBrightnessUp $ex brightnessctl s +5%
 bindsym XF86MonBrightnessDown $ex brightnessctl s 5%-
+for_window [class="copyq" instance="copyq" window_type="normal"] floating enable
+bindsym $mod+y $ex copyq-restart
 
 # Font for window titles. Will also be used by the bar unless a different font
 # is used in the bar {} block below.