X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=subdir_files%2F.config%2Fsway%2Fconfig;h=04ecbbd3e97f5341fcc722416964fd663ab38611;hb=01ccff895787ca94ad37d11cb93f0440a29edd7c;hp=f96355ab88aea2cb7596386343e1dadf881163a1;hpb=7e673f2615101982a17ffa0e23cb10b5b3803f07;p=distro-setup diff --git a/subdir_files/.config/sway/config b/subdir_files/.config/sway/config index f96355a..04ecbbd 100644 --- a/subdir_files/.config/sway/config +++ b/subdir_files/.config/sway/config @@ -18,7 +18,14 @@ bindsym $mod+6 exec "/a/bin/redshift.sh" # bindsym $mod+grave exec "t s lunch; t in; t out -a '45 minutes from now'" -bindsym $mod+w focus parent +bindsym $mod+equal focus parent +# 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 @@ -61,7 +68,9 @@ 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 +bindsym $mod+b [class="Emacs" title="^(?!#[a-zA-Z][a-zA-Z-]*$)"] move workspace current bindsym $mod+c kill @@ -80,8 +89,16 @@ bindsym $mod+9 workspace 10 # random keybind, feel free to change bindsym $mod+Shift+m border toggle +# toggle tiling / floating +bindcode $mod+Shift+65 floating toggle + +# change focus between tiling / floating windows +bindcode $mod+65 focus mode_toggle +# Use Mouse+$mod to drag floating windows to their wanted position +floating_modifier $mod + bindsym $mod+j exec emacsclient -c -bindsym $mod+k exec kitty +bindsym $mod+k exec konsole bindsym $mod+l exec dmenu_run # note default is 27% on my system76. not sure if these # keybinds will screw up other laptop brightness keys.