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

Using win key to launch dmenu_run

asked 2013-07-30 20:06:06 +0000

anonymous user

Anonymous

Hi,

I want dmenu_run to execute whenever I press the win key with no other keys. I've tried this in my i3 config file to no avail:

bindsym Mod4 exec dmenu_run

set $win Mod4 bindsym $win exec dmenu_run

bindsym $Mod4 exec dmenu_run

And a few other variations, yet I'm not getting functionality that I want. Any input?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-08-01 02:38:25 +0000

syl20bnr gravatar image

updated 2013-08-01 02:39:31 +0000

To achieve this you have to 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-07-30 20:06:06 +0000

Seen: 347 times

Last updated: Aug 01 '13