# todo: think whether this is useful: https://github.com/tmfink/i3-wk-switch
# todo: see comment by Jakstern551 here for tip about jumping to windows
+# https://old.reddit.com/r/i3wm/comments/k8m4k4/share_your_i3_tips_and_tricks_that_you_have/
# https://i3wm.org/docs/userguide.html#keybindings
#To get the current mapping of your keys, use xmodmap -pke. To
# for non-gui apps, use this.
set $ex exec --no-startup-id
-bindsym $mod+2 $ex "/b/ds/i3-split-maybe"; exec "pavucontrol"
+bindsym $mod+2 $ex "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 $ex "/b/ds/i3-split-maybe"; exec "abrowser"
+bindsym $mod+3 $ex "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 $ex "/b/ds/i3-split-maybe"; exec "abrowser -no-remote -P firefox-main-profile"
+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/obs-i3-interlude"
-bindsym $mod+6 $ex "/b/ds/i3-split-maybe"; exec "/usr/local/bin/start-tor-browser"
+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"
#bindsym $mod+6 $ex "/a/bin/redshift.sh"
# bindsym $mod+equal $ex "t s w; t in"
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"
+
+# note, i used to have a key: "floating toggle; floating toggle" to
+# as undo split, as suggested here https://github.com/i3/i3/issues/3808
+# but something
+#
+bindsym $mod+grave floating toggle
+bindsym $mod+equal $ex "i3-set-layout splith"
# move firefox to current workspace.
# https://i3wm.org/docs/userguide.html#keybindings
# get class with xprop, example output
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
+
+bindsym $mod+t $ex "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
-bindsym $mod+shift+g $ex "/b/ds/i3-auto-layout-toggle"
+
+bindsym $mod+g $ex "i3-set-layout tabbed"
+
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
bindsym $mod+u focus left; $ex "i3-mouse-warp"
+# i dont expect to use this much
+bindsym $mod+shift+u $ex "i3-auto-layout-toggle"
bindsym $mod+i focus right; $ex "i3-mouse-warp"
bindsym $mod+o focus up; $ex "i3-mouse-warp"
bindsym $mod+p focus down; $ex "i3-mouse-warp"
-bindsym $mod+Left $ex "/a/exe/i3-maybe-double-move left"
-bindsym $mod+Right $ex "i3-maybe-double-move right"
-bindsym $mod+Up $ex "i3-maybe-double-move up"
-bindsym $mod+Down $ex "i3-maybe-double-move down"
+bindsym $mod+Left $ex "i3-split-push left"
+bindsym $mod+Right $ex "i3-split-push right"
+bindsym $mod+Up $ex "i3-split-push up"
+bindsym $mod+Down $ex "i3-split-push down"
+
+# for testing in case there is a problem with above.
+# these could be rebound to other things.
+bindsym $mod+shift+Left move left
+bindsym $mod+shift+Right move right
+bindsym $mod+shift+Up move up
+bindsym $mod+shift+Down move down
bindsym $mod+Shift+a move container to workspace 4
bindsym $mod+a workspace 4
bindsym $mod+x workspace 6
-# todo, in newer i3, make this split toggle
+# 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+g
+#bindsym $mod+shift+5
+
+
+
+
bindsym $mod+b $ex i3-pull term
bindsym $mod+shift+b unmark term; mark term
# for use to cleanup extra emacs windows
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.
# change focus between tiling / floating windows
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+j $ex "/b/ds/i3-split-maybe"; exec emacsclient -c
-bindsym $mod+shift+j $ex obs-clip up
-bindsym $mod+k $ex "/b/ds/i3-split-maybe"; exec konsole
-bindsym $mod+shift+k $ex obs-clip intro
+bindsym $mod+shift+h $ex /b/ds/stream-clip hc
+bindsym $mod+j $ex "i3-split-maybe"; exec emacsclient -c
+bindsym $mod+shift+j $ex /b/ds/stream-clip up
+bindsym $mod+k $ex "i3-split-maybe"; exec konsole
+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%
# 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
# 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
+
+# default border is like 2 pixels
+default_border pixel
+# for debugging
+#default_border normal 10
# I dont see a way to make processing windows act like normal windows,
# this does it.