From 175dc6de07d8ca484febccbedb401178dcd728ee Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Tue, 16 Apr 2024 02:35:12 -0400 Subject: [PATCH] i3 fixes --- i3-split-maybe | 2 +- i3-sway/common.conf | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/i3-split-maybe b/i3-split-maybe index 8cef6ef..48bae01 100755 --- a/i3-split-maybe +++ b/i3-split-maybe @@ -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 diff --git a/i3-sway/common.conf b/i3-sway/common.conf index 9e4cedc..6789229 100644 --- a/i3-sway/common.conf +++ b/i3-sway/common.conf @@ -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 -- 2.30.2