mostly fixes
[distro-setup] / i3-sway / common.conf
index 39ee9b431d8f3656e6f281a439fcd2aacc42865f..0963109f28026f1914b5af5f5fcfbd9ed202752f 100644 (file)
@@ -19,7 +19,11 @@ bindsym $mod+6 exec "/a/bin/redshift.sh"
 
 
 bindsym $mod+equal focus parent
-# move firefox to current workspace
+# move firefox to current workspace.
+# https://i3wm.org/docs/userguide.html#keybindings
+# get class with xprop, example output
+# WM_CLASS(STRING) = "irssi", "URxvt"
+# xprop |& grep WM_CLASS
 bindsym $mod+w [class="abrowser"] move workspace current
 
 bindsym $mod+e fullscreen toggle
@@ -64,7 +68,14 @@ bindsym $mod+x workspace 6
 
 # todo, in newer i3, make this split toggle
 bindsym $mod+v split vertical
-bindsym $mod+b split horizontal
+bindsym $mod+Shift+v split horizontal
+# https://faq.i3wm.org/question/7662/reverse-perl-matches-in-criteria-in-i3-config.1.html
+# I found their regex slightly wrong. This is a hacky way to
+# ignore my irc emacs instances, their window titles
+# are irc room names. Another way would be to hack on the
+# window title, or xprop stuff, but I figure I'm switching
+# to wayland soon, lets wait and see how things work there.
+bindsym $mod+b [class="Emacs" title="^(?!#[a-zA-Z][a-zA-Z-]*$)"] move workspace current
 
 bindsym $mod+c kill