Skip to content

0005 mouse buttons

budRich edited this page Oct 5, 2022 · 4 revisions

github-i3/issues: disabling tile-drag on title discussion
github-i3/issues: my title_click feature request

i3 config options:

floating_modifier               Mod1
focus_follows_mouse             no

https://i3wm.org/docs/userguide.html#mousebindings

bindsym [--release] [--border] [--whole-window] [--exclude-titlebar] [<Modifiers>+]button<n> command
  • button1 = left
  • button2 = middle (click scrollwheel)
  • button3 = right
  • button4 = scroll up
  • button5 = scroll down
  • button6 = scroll right
  • button7 = scroll left
  • button8 = "back" button
  • button9 = "forward" button

close windows by middleclicking titlebar

bindsym --release button2 kill

disable tabswitch by scrollwheel

bindsym button4 nop
bindsym button5 nop

disable drag by titlebar (both tiled and floating)

bindsym button1 focus

dirt-hack: remap buttons to keys

set $map exec --no-startup-id exec xdotool key
bindsym --whole-window button8 $map BackSpace
bindsym --whole-window button9 $map F5