i3 fixes
authorIan Kelling <ian@iankelling.org>
Tue, 16 Apr 2024 06:35:12 +0000 (02:35 -0400)
committerIan Kelling <ian@iankelling.org>
Tue, 16 Apr 2024 06:35:12 +0000 (02:35 -0400)
i3-split-maybe
i3-sway/common.conf

index 8cef6ef71103268ea1dc7c7bc934d7b3b74bfca4..48bae01f5cb6af8d9a0a0bb697cfd3bb9593068a 100755 (executable)
@@ -41,7 +41,7 @@ fi
 
 tmp=$(mktemp)
 
-i3-msg -t get_workspaces | jq ".[]| select(.focused==true) | .rect | .width" >$tmp
+i3-msg -t get_workspaces | jq ".[]| select(.focused==true) | .rect | .width, .height" >$tmp
 
 { read -r screen_width; read -r screen_height; } <$tmp
 
index 9e4cedcccf44836336889f260cf61d62c4a94a00..67892291e0d5863309ddfa350b7ecd002fdfc528 100644 (file)
@@ -22,17 +22,17 @@ set $ex exec --no-startup-id
 bindsym $mod+2 $ex "/b/ds/i3-split-maybe"; exec "pavucontrol"
 # calling without -no-remote makes this to be the instance that links
 # will open in from other applications.
-bindsym $mod+3 exec "abrowser"
+bindsym $mod+3 $ex "/b/ds/i3-split-maybe"; exec "abrowser"
 # calling just abrowser mysteriously stopped working,
 # so I figured out this is how to get output, but then
 # it suddenly started working again.
 #bindsym $mod+3 exec "abrowser 2>&1 >/tmp/l"
 #bindsym $mod+3 exec "abrowser -no-remote -P sfw"
-bindsym $mod+4 exec "abrowser -no-remote -P firefox-main-profile"
+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+6 exec "/usr/local/bin/start-tor-browser"
+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"
 # bindsym $mod+equal $ex "t s w; t in"
@@ -149,9 +149,9 @@ bindcode $mod+shift+65 focus mode_toggle
 floating_modifier $mod
 
 bindsym $mod+shift+h $ex clip-hc
-bindsym $mod+j $ex emacsclient -c
+bindsym $mod+j $ex "/b/ds/i3-split-maybe"; exec emacsclient -c
 bindsym $mod+shift+j $ex clip-up
-bindsym $mod+k $ex konsole
+bindsym $mod+k $ex "/b/ds/i3-split-maybe"; exec konsole
 bindsym $mod+shift+k $ex mpv --profile=a /a/bin/data/clips/enter-in.flac
 bindsym $mod+l $ex dmenu_run
 bindsym $mod+shift+l $ex mpv --profile=a /a/bin/data/clips/tokyo-eye.flac