The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
1

How can I list all Xorg and i3 keybindings currently in effect?

asked 2015-02-16 03:14:15 +0000

Gamonics gravatar image

I'd like to start doing some customization of Xorg and i3, but I don't want to clobber any existing keybindings. Is it possible to force Xorg or i3 to list all keybindings currently in effect? I've read about and experimented with xbindkeys, but it seems to be about only SETTING the keybindings. I know there is a user guide for i3 and I've been reading it, but I think my distro packagers may have set up some keybindings in i3 and/or Xorg that I'm not yet aware of, so I'd like to be able to have a complete list of keybindings currently in memory. Any way to do that?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-02-17 10:11:38 +0000

Adaephon gravatar image

There is no central instance where you can query all key bindings ("in memory"). It always depends on the programs that are currently running, some of which may be designed to grab keys globally (e.g. xbindkey, and also i3 itself). Which keys are bound depends on the programs and can probably only be viewed in the respective configurations.

i3

i3 grabs only the key bindings defined in its configuration file. i3 takes the first - and only the first - file it finds from this list:

  1. $XDG_CONFIG_HOME/i3/config (defaults to ~/.config/i3/config if XDG_CONFIG_HOME is unset)
  2. $XDG_CONFIG_DIRS/i3/config (defaults to /etc/xdg/i3/config if XDG_CONFIG_DIRS is unset)
  3. ~/.i3/config
  4. /etc/i3/config

If your config file is ~/.config/i3/config, running grep -e '^[^#]*bind' ~/.config/i3/config should get you a list of used bindings.

X11

X11 by default only binds Ctrl+Alt+Fn (with Fn being some function key) for switching to virtual consoles and Shift+Insert for pasting text from the clipboard.

Unfortunatelly the case where other bindings may be defined is not as clear cut as with i3. Other bindings probably may be defined in /etc/X11/xorg.conf or in files in /etc/X11/xorg.conf.d. But Debian-based distributions also do some configuration in /etc/defaults/keyboard. Some distributions (used to?) define settings in /etc/udev/rules.d/. And some settings can also be altered with programs.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2015-02-16 03:14:15 +0000

Seen: 353 times

Last updated: Feb 17