Neither Alt
nor Strg
are valid modifiers. According to the User's Guide, key bindings are to be defined like this:
bindsym [--release] [Modifiers+]keysym command
bindcode [--release] [Modifiers+]keycode command
where [Modifiers+]
is a list of modifiers separated and ended with +
. Recognized modifiers are
Mod1
(usually aka "Alt" or "Meta") Mod2
("NumLock") Mod3
(unused on default QWERTY layout) Mod4
(aka "Super" or "Windows-Key") Mod5
(e.g. "Alt_Gr" on german QWERTZ layout) Shift
Control
Mode_Switch
Depending on the physical keyboard and keyboard layout you use, not every modifier is necessarily available or mapped to a key that your keyboard actually has. You can use xmodmap -pm
to get a list of modifiers and the key symbols and codes they are mapped to. For the US layout ("QWERTY") it looks something like that:
xmodmap: up to 4 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x69)
mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf)
mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)
As you can see, here the "Alt" keys (Alt_L
and Alt_R
) are mapped to the mod1
modifier. So in order to utilize them in the i3 configuration, you would write:
bindsym Mod1+a exec flamethrowers
bindsym Control+Mod1+a exec flamethrowers
bindsym $mod+Control+Mod1+a exec flamethrowers
Note: some combinations of modifiers may not work, depending on layout and possibly keyboard hardware.