####### DO NOT EDIT LIVE CONFIG. generated from /a/bin/distro-setup/i3-sway/gen ####### # https://i3wm.org/docs/userguide.html#keybindings #To get the current mapping of your keys, use xmodmap -pke. To #interactively enter a key and see what keysym it is configured to, use #xev. 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 "/a/bin/ds/laptop-xrandr" bindsym $mod+6 exec "/usr/local/bin/start-tor-browser" #bindsym $mod+6 exec "/a/bin/redshift.sh" # bindsym $mod+equal exec "t s w; t in" # bindsym $mod+Home exec "t out" # #bindsym $mod+End exec "t s x; t in" # bindsym $mod+grave exec "t s lunch; t in; t out -a '45 minutes from now'" bindsym $mod+1 focus parent bindsym $mod+equal exec "dunstctl close-all" # 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 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 floating_modifier $mod bindsym $mod+u focus left bindsym $mod+i focus right bindsym $mod+o focus up bindsym $mod+p focus down bindsym $mod+Left move left bindsym $mod+Right move right bindsym $mod+Up move up bindsym $mod+Down move down # switch to workspace bindsym $mod+Shift+a move container to workspace 4 bindsym $mod+a workspace 4 # move focused container to workspace bindsym $mod+Shift+s move container to workspace 3 bindsym $mod+s workspace 3 bindsym $mod+Shift+d move container to workspace 2 bindsym $mod+d workspace 2 bindsym $mod+Shift+f move container to workspace 1 bindsym $mod+f workspace 1 bindsym $mod+Shift+z move container to workspace 5 bindsym $mod+z workspace 5 bindsym $mod+Shift+x move container to workspace 6 bindsym $mod+x workspace 6 # todo, in newer i3, make this split toggle bindsym $mod+v split vertical 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 bindsym $mod+Shift+Home move container to workspace 7 bindsym $mod+Home workspace 7 bindsym $mod+Shift+q move container to workspace 8 bindsym $mod+q workspace 8 bindsym $mod+Shift+8 move container to workspace 9 bindsym $mod+8 workspace 9 bindsym $mod+Shift+9 move container to workspace 10 bindsym $mod+9 workspace 10 bindsym $mod+Shift+m border toggle # 65 = space. # 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 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. bindsym XF86MonBrightnessUp exec brightnessctl s +5% bindsym XF86MonBrightnessDown exec brightnessctl s 5%- # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. font pango:monospace 8 # todo: only available in newer i3n #hide_edge_borders smart #exec --no-startup-id /usr/lib/x86_64-linux-gnu/libexec/kdeconnectd # Start clipster daemon #exec --no-startup-id /a/opt/clipster/clipster -d # shortcut to selection widget (primary) bindsym $mod+End exec /a/opt/clipster/clipster -sp # file:///usr/share/doc/i3-wm/userguide.html#_border_style_for_new_windows new_window none # I dont see a way to make processing windows act like normal windows, # this does it. # https://unix.stackexchange.com/questions/450700/opening-a-programme-in-a-floating-window-in-i3 # # This is the info for a processing window launched from the ide. # I'm not sure I want it like this, so commenting it out for now. #for_window [class="processing-core-PApplet" instance="processing-core-PApplet"] floating disable # this is the processing window for my app named focus. for_window [class="focus" instance="focus"] floating disable