The i3 FAQ has migrated to All content here is read-only.
Ask Your Question

Keybinding for the both shifts keys

asked 2013-11-10 10:07:06 +0000

Spheerys gravatar image

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 ?

edit retag flag offensive close merge delete


Thank you ! It's working like a charm :)

Spheerys gravatar imageSpheerys ( 2013-11-10 21:08:28 +0000 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2013-11-10 20:38:59 +0000

Adaephon gravatar image

updated 2013-11-10 20:52:13 +0000

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.

edit flag offensive delete link more

Question Tools


Asked: 2013-11-10 10:07:06 +0000

Seen: 303 times

Last updated: Nov 10 '13