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 Sep 20 '13

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 ?

1 answer

Sort by » oldest newest most voted
2

answered Sep 21 '13

syl20bnr gravatar image

updated Sep 21 '13

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

Question Tools

Stats

Asked: Sep 20 '13

Seen: 1,189 times

Last updated: Sep 21 '13