Keybinding for the both shifts keys
I'm looking for a way to launch a programm when I press the left and the right SHIFT key on the same time. Is it possible to do this with i3 ?
I'm looking for a way to launch a programm when I press the left and the right SHIFT key on the same time. Is it possible to do this with i3 ?
Yes. Add this to your configuration:
bindcode Shift+50 exec program
bindcode Shift+62 exec program
The first line configures the binding <Shift_R>+<Shift_L>
(pressing <Shift_L>
while holding <Shift_R>
). The second line is for <Shift_L>+<Shift_R>
. So you could even start different programs depending on the order you press the shift keys.
Keycodes depend on the hardware and the drivers used. The code above should work with most modern Linux distributions (using evdev drivers) and common keyboards (PC 104/105-key). If it does not work use xev to determine the keycodes of the Shift keys.
Asked: 2013-11-10 10:07:06 +0000
Seen: 303 times
Last updated: Nov 10 '13
Thank you ! It's working like a charm :)