You are not logged in.

#1 2010-04-21 09:23:49

spiridow
Member
Registered: 2009-08-08
Posts: 40

Openbox one-key only keybind

Hi,

I was wondering if it was possible to define a keybind with only one key. For example, when I press the windows key only, it runs a program of my choice.

But, I would like to have other keybinds at the same time which use the windows key too, but with another key. For example W-x and W-f but also W only.

How can I do this with openbox?

Offline

#2 2010-04-21 11:35:02

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Openbox one-key only keybind

Do you have it working in another WM/DE?

Since there is no way to tell for your WM to discern between W and W+$whatever afaik, I think it's a rather stupid idea. However, you can dive right in and edit rc.xml and test for yourself.

You can be your very own guinea pig. Exciting isn't it wink.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2010-04-21 12:00:08

spiridow
Member
Registered: 2009-08-08
Posts: 40

Re: Openbox one-key only keybind

.:B:. wrote:

Do you have it working in another WM/DE?

Since there is no way to tell for your WM to discern between W and W+$whatever afaik, I think it's a rather stupid idea. However, you can dive right in and edit rc.xml and test for yourself.

You can be your very own guinea pig. Exciting isn't it wink.

Actually it isn't working if only "W" is specified in rc.xml.
That's why I'm asking if there's another trick to get this working.

I think I was able to do this either in gnome or xfce, can't remember which, though.

Offline

#4 2010-04-21 23:18:43

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: Openbox one-key only keybind

Why not try a simple mnemonic system: 'Windows-f' launches Firefox, 'Windows-x' launches xterm, and so on.

Offline

#5 2010-04-22 13:22:43

Epiphanic
Member
Registered: 2009-02-22
Posts: 44

Re: Openbox one-key only keybind

It is possibe.  I believe "SuperL" or "SuperR" are the labels for the windows keys on your keyboard.  Place in the appropriate part of rc.xml and presto!

Offline

#6 2010-04-22 14:28:11

spiridow
Member
Registered: 2009-08-08
Posts: 40

Re: Openbox one-key only keybind

Epiphanic wrote:

It is possibe.  I believe "SuperL" or "SuperR" are the labels for the windows keys on your keyboard.  Place in the appropriate part of rc.xml and presto!

This works perfectly as long as you only have this keybind that uses Super_L. Thanks.

But if I have this in rc.xml:

    <keybind key="W-x">
      <action name="Execute">
        <execute>urxvt</execute>
      </action>
    </keybind>

    <keybind key="Super_L">
      <action name="Execute">
        <execute>leafpad</execute>
      </action>
    </keybind>

When pressing Super, it runs leafpad. Fine.
But when pressing Super+x, it first runs leafpad, and then urxvt. It there some way to make this only run urxvt?

Offline

Board footer

Powered by FluxBB