mostly improvements, wip
[distro-setup] / i3-sway / common.conf
index 017f4bd7fc0f7dc7f13dbdb1efcc5aff4afdafa4..2cc2d1c881e756b48982f53ccc01a5d39bc2b957 100644 (file)
@@ -31,7 +31,7 @@ bindsym $mod+3 $ex "/b/ds/i3-split-maybe"; exec "abrowser"
 bindsym $mod+4 $ex "/b/ds/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/obs-i3-interlude"
+bindsym $mod+5 $ex "/a/bin/ds/stream-interlude"
 bindsym $mod+6 $ex "/b/ds/i3-split-maybe"; exec "/usr/local/bin/start-tor-browser"
 bindsym $mod+7 $ex "/a/bin/ds/laptop-xrandr"
 #bindsym $mod+6 $ex "/a/bin/redshift.sh"
@@ -45,7 +45,7 @@ bindsym $mod+1 focus parent
 bindsym $mod+shift+1 focus child
 # undo split: https://github.com/i3/i3/issues/3808
 bindsym $mod+grave floating toggle; floating toggle
-bindsym $mod+equal $ex "dunstctl close-all"
+bindsym $mod+equal $ex "/a/exe/i3-set-layout splith"
 # move firefox to current workspace.
 # https://i3wm.org/docs/userguide.html#keybindings
 # get class with xprop, example output
@@ -57,14 +57,24 @@ bindsym $mod+shift+w fullscreen toggle
 bindsym $mod+e $ex i3-pull emacs
 bindsym $mod+shift+e unmark emacs; mark emacs
 bindsym $mod+r $ex "/a/bin/ds/xl"
-# todo, in newer i3, make this toggle split tabbed
-bindsym $mod+t layout toggle splith splitv tabbed
+
+# todo, in newer i3, make this toggle split tabbed.
+bindsym $mod+t $ex "/a/exe/i3-set-layout splitv"
 #bindsym $mod+Shift+t move workspace to output up
 bindsym $mod+Shift+t move workspace to output right
-# there's a bug about this. it is not logical that there is no "split
-# tabbed", but you accomplish that by doing this.
-bindsym $mod+g split horizontal, layout tabbed
-bindsym $mod+shift+n layout tabbed
+
+# todo: consider a command that moves a window, and erases any single
+# container window left behind.
+
+# todo: port /b/ds/i3-maybe-double-move into python.
+
+# todo: consider a command which alters things as if the current window
+# had been created into a single window split. For horizontal split,
+# this would be like: focus left, split vertical, focus right, move
+# left. With that, we could totally eliminate single window containers.
+
+bindsym $mod+g $ex "/a/exe/i3-set-layout tabbed"
+
 bindsym $mod+shift+g $ex "/b/ds/i3-auto-layout-toggle"
 
 # Use Mouse+$mod to drag floating windows to their wanted position
@@ -129,6 +139,7 @@ bindsym $mod+8 workspace 9
 bindsym $mod+Shift+9 move container to workspace 10
 bindsym $mod+9 workspace 10
 
+bindsym $mod+m $ex "dunstctl close-all"
 bindsym $mod+Shift+m border toggle
 
 # 65 = space.
@@ -149,14 +160,14 @@ bindcode $mod+shift+65 focus mode_toggle
 # Use Mouse+$mod to drag floating windows to their wanted position
 floating_modifier $mod
 
-bindsym $mod+shift+h $ex obs-clip hc
+bindsym $mod+shift+h $ex /b/ds/stream-clip hc
 bindsym $mod+j $ex "/b/ds/i3-split-maybe"; exec emacsclient -c
-bindsym $mod+shift+j $ex obs-clip up
+bindsym $mod+shift+j $ex /b/ds/stream-clip up
 bindsym $mod+k $ex "/b/ds/i3-split-maybe"; exec konsole
-bindsym $mod+shift+k $ex obs-clip intro
+bindsym $mod+shift+k $ex /b/ds/stream-clip intro
 bindsym $mod+l $ex dmenu_run
-bindsym $mod+shift+l $ex obs-clip steady
-bindsym $mod+shift+semicolon $ex obs-clip sad
+bindsym $mod+shift+l $ex /b/ds/stream-clip steady
+bindsym $mod+shift+semicolon $ex /b/ds/stream-clip sad
 # note default is 27% on my system76. not sure if these
 # keybinds will screw up other laptop brightness keys.
 bindsym XF86MonBrightnessUp $ex brightnessctl s +5%
@@ -166,7 +177,6 @@ bindsym XF86MonBrightnessDown $ex brightnessctl s 5%-
 # is used in the bar {} block below.
 font pango:monospace 7
 
-# todo: only available in newer i3n
 hide_edge_borders vertical
 
 #exec --no-startup-id /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd
@@ -176,11 +186,13 @@ hide_edge_borders vertical
 
 
 # shortcut to selection widget (primary)
-bindsym $mod+End $ex /a/opt/clipster/clipster -sp
+bindsym $mod+End $ex "/b/ds/toggle-mute"
 
 # title bars but no borders. i tried this out a bit
 #default_border normal 0
 default_border pixel 4
+# for debugging
+default_border normal 10
 
 # I dont see a way to make processing windows act like normal windows,
 # this does it.
@@ -193,6 +205,6 @@ default_border pixel 4
 # this is the processing window for my app named focus.
 for_window [class="focus" instance="focus"] floating disable
 
-client.focused          #4c7899 #285577 #ffffff #2e9ef4   #ff4400
-client.focused_inactive #333333 #5f676a #ffffff #484e50   #DBEEF4
-client.unfocused        #333333 #222222 #888888 #292d2e   #B8C8CD
+client.focused          #4c7899 #285577 #ffffff #2e9ef4   #ff4400
+client.focused_inactive #333333 #5f676a #ffffff #484e50   #DBEEF4
+client.unfocused        #333333 #222222 #888888 #292d2e   #B8C8CD