X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=i3-sway%2Fcommon.conf;h=ac2c8c4f42192d2a4ae0f97a168b98acb23a885b;hb=9c77c557e60d21caceeef1e78e35b35ed968fca9;hp=39ee9b431d8f3656e6f281a439fcd2aacc42865f;hpb=6cc73025405b7a540eec371d1d8f7d9d13d8e019;p=distro-setup diff --git a/i3-sway/common.conf b/i3-sway/common.conf index 39ee9b4..ac2c8c4 100644 --- a/i3-sway/common.conf +++ b/i3-sway/common.conf @@ -7,7 +7,13 @@ set $mod Mod4 bindsym $mod+2 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" +# 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+5 exec "/usr/local/bin/start-tor-browser" @@ -19,14 +25,19 @@ 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 bindsym $mod+r exec "/a/bin/ds/xl" # todo, in newer i3, make this toggle split tabbed bindsym $mod+t layout toggle split -bindsym $mod+Shift+t move workspace to output right +bindsym $mod+Shift+t move workspace to output up +#bindsym $mod+Shift+t move workspace to output right bindsym $mod+g layout tabbed # Use Mouse+$mod to drag floating windows to their wanted position @@ -64,7 +75,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