You are not logged in.

Announcement

Due to heavy spamming of forums registration is going in stages. If you wish to register as a new user with ArchBang Forums, first register and then send an e-mail to: archbangforums at gmail dot com. It should contain the problem you want to discuss or some other AB related content. You will be promoted from registering member with no posting rights to new member with posting rights after that. If your mail is ignored you haven't fulfilled the requirements.

#1 2012-04-12 08:26:43

Steve
New member
Registered: 2012-04-12
Posts: 3

Keybinding "A-Up" and "A-Down" with rc.xml [Solved]

I'm having trouble keybinding absolutely anything to <Alt>Up and/or <Alt>Down. For example the following keybind should open Chromium when I hold the ALT and UP ARROW keys:

    <keybind key="A-Up">
      <action name="Execute">
        <startupnotify>
          <enabled>true</enabled>
          <name>Web Browser</name>
        </startupnotify>
        <command>chromium</command>
      </action>
    </keybind>


But chromium fails to open. Although there are many key combinations where I can get chromium to open, I've listed two interesting ones as examples here:

one:        <keybind key="A-Left">
two:        <keybind key="W-Up">


The first suggests that the ALT key I have works in combination with the left/right arrow keys.
The second suggests that the UP and DOWN arrow keys also work when combined with the SUPER key.

So I can safely assure you that my keyboard is working correctly and that I am reconfiguring OB after updating my rc.xml.
I also checked the rest of my rc.xml file and couldn't find any duplicate instances of A-Up and/or A-Down.


It seems I'm just unable to bind anything to the key combination: ALT + UP and/or ALT + DOWN. Any thoughts on what could be going on here would greatly be appreciated!

Cheers,

Steve

Offline

#2 2012-04-12 10:08:01

Mr Green
Iso Developer
Registered: 2010-11-07
Posts: 3,749

Re: Keybinding "A-Up" and "A-Down" with rc.xml [Solved]

Works A-Up works fine for me, after reconfiguring openbox

Offline

#3 2012-04-12 18:16:06

handy
ArchBanger
Registered: 2011-11-03
Posts: 423

Re: Keybinding "A-Up" and "A-Down" with rc.xml [Solved]

You could test whether you are calling Chromium properly by calling it to open automatically on a specified desktop when Openbox starts.

I use the following to open Firefox on desktop 5:

    <application class="Firefox">
      <desktop>5</desktop>
      <maximized>yes</maximized>
      <focus>yes</focus>
      <position force="yes">
        <x>0</x>
        <y>0</y>
        <monitor>0</monitor>
      </position>
    </application>

This post in a thread over at Spiralinear.org has some info' that helped me a lot when I was first messing about with my rc.xml (thanks go to urukrama), it could most especially be of assistance if Chromium uses a different name or class, also the case of the first letter of the name can bring it all undone:

http://spiralinear.org/forum/viewtopic. … t=10#p1646

Offline

#4 2012-04-13 21:30:36

Steve
New member
Registered: 2012-04-12
Posts: 3

Re: Keybinding "A-Up" and "A-Down" with rc.xml [Solved]

Ok, I've had some luck, but am still having difficulties. Here's what I've done since:

1. Copied the rc.xml file from the live cd.
2. Copied this file to both /etc/xdg/openbox/rc.xml and ~/.config/openbox/rc.xml

3. I went Preferences -> Openbox config -> Key Editor to open obkey program.
4. I then inserted four sibling keybinds for: ALT+Up, ALT+Down, ALT+Right and ALT+Left each with the chroot option.
5. Save and Reboot.

6. I then go Preferences -> Openbox config -> Key Editor to open obkey again.
7. I remove the four keybinds I just made.

And this fixes the keybinding problem I have had. The ALT+Up and ALT+Down keys now allow me to freely navigate Terminator (up and down, respectively) after splitting vertically. Perfect. This is exactly what I wanted to achieve.

However if I reboot, the problem persists and I need to restart these steps to make sure ALT+Up and ALT+Down are unbound. And I need ALT+Up and ALT+Down unbound to navigate Terminator easily.


So ... it seems (at least I think it seems ...) that upon booting my machine, something is being bound on top of ALT+Up and ALT+Down. What is it? What could this be? Is there an easy way to find out what is being bound?

Offline

#5 2012-04-14 00:27:10

Mr Green
Iso Developer
Registered: 2010-11-07
Posts: 3,749

Re: Keybinding "A-Up" and "A-Down" with rc.xml [Solved]

I have not used chrooted keychains but this may help

http://openbox.org/wiki/Help:Bindings#C … key_chains

Offline

#6 2012-04-14 07:27:53

Steve
New member
Registered: 2012-04-12
Posts: 3

Re: Keybinding "A-Up" and "A-Down" with rc.xml [Solved]

Solved. ALT+Up and ALT+Down were bound in "Mixer" (Volume control). I must have forgot that I bound this. I should probably log everything or stop drinking...

Thanks all.

Offline

#7 2012-04-14 13:49:00

Mr Green
Iso Developer
Registered: 2010-11-07
Posts: 3,749

Re: Keybinding "A-Up" and "A-Down" with rc.xml [Solved]

Will mark thread as solved, beers are on Steve smile

Offline

Board footer

Powered by FluxBB