SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2013-01-25 19:26:24

Gaba
Member
Registered: 2013-01-25
Posts: 11

Super key as 'Alt Menu' launcher

Hi,
is there a way to re-map the 'Super' key (or 'Windows' key) to act as the launcher of the 'Alt Menu' that displays with 'Alt+F3' by default?

Thanks!

Offline

Help fund CrunchBang, donate to the project!

#2 2013-01-25 19:46:04

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,107

Re: Super key as 'Alt Menu' launcher

I'm not running #!, but in rc.xml (in /home/yourusername/.config/openbox):

<keybind key="A-F3">
      <action name="Execute">
        <command>dmenu_run</command>

change the A to W.

Last edited by dura (2013-01-25 19:52:22)

Offline

#3 2013-01-25 19:55:29

Gaba
Member
Registered: 2013-01-25
Posts: 11

Re: Super key as 'Alt Menu' launcher

I did not explained myself correctly. I don't want to use the 'Super+F3' combination as a replacement of 'Alt+F3', I want to replace 'Alt+F3' with the 'Super' key alone (a la Unity or Cinnamon)

Offline

#4 2013-01-25 19:58:27

dura
Bloated Gimp
From: interzone
Registered: 2012-09-15
Posts: 2,107

Re: Super key as 'Alt Menu' launcher

Then remove the +F3, so it is just W, though doing so will most likely render all other special key commands redundant.

Last edited by dura (2013-01-25 19:59:19)

Offline

#5 2013-01-25 21:12:17

Gaba
Member
Registered: 2013-01-25
Posts: 11

Re: Super key as 'Alt Menu' launcher

Nope, did not work. Apparently the 'Super' key can't be used alone or even with F# keys (I logged out each time I changed rc.xml) ...

Offline

#6 2013-01-26 00:56:49

Loomx
Member
Registered: 2012-08-21
Posts: 41

Re: Super key as 'Alt Menu' launcher

First you need to remap the Super key to something else so it is not seen as a modifier key any more.
Use `xev' to find out what keycode your Super key produces, then use xmodmap to change that keycode to something unused, like F13 or higher.

The command will be something like e.g.

xmodmap -e "keycode 133 = F13"

Add that command to your ~/.xinitrc (or however you autostart stuff on boot)

Then change your rc.xml to

<keybind key="F13">
      <action name="Execute">
        <command>dmenu_run</command>

Also, note that each Super key (if you have two) has a different keycode, so you could map them to different things (or the same thing).

Offline

#7 2013-01-27 01:59:25

Gaba
Member
Registered: 2013-01-25
Posts: 11

Re: Super key as 'Alt Menu' launcher

Than you, I'll try that.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo