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

Is it possible to use Alt key for shortcut ?

asked 2013-09-20 18:23:40 +0000

Spheerys gravatar image

Everything is on the title. I'm using Windows key as $mod, and I want to use Alt key for some shortcuts but it's doesn't work.

Is it normal ? Is there a workaround ?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-09-21 00:18:44 +0000

syl20bnr gravatar image

updated 2013-09-21 00:24:58 +0000

1) To use it as a modifier:

bindsym Mod1+semicolon exec i3-input -P "i3-msg"

2) To use it as a key instead of a modifier:

Use the command bindcode instead of bindsym.

In a terminal execute the command xev and press the key you want to use. You should be able to spot the keycode of the pressed key.

Then bind the found keycode X like this:

bindcode X exec dmenu_run
edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-09-20 18:23:40 +0000

Seen: 1,189 times

Last updated: Sep 21 '13