using "W-." keybind

Please post all general support questions for LXDE here.
Locked
KranthiKatikala
Posts: 3
Joined: Wed Oct 10, 2012 3:39 pm

using "W-." keybind

Post by KranthiKatikala »

I'm trying to use the following code in the lxde-rc.xml file.

Code: Select all

    </keybind>
    <keybind key="W-.">
      <action name="ToggleMaximize">
      <direction>both</direction>
      </action>
    </keybind>
But the keybind won't work. I don't mind changing the keybind to something else at all, but can anyone please direct me to the page which contains a possible explanation for this please?
Thanks. :)
maaaaaarco
Posts: 17
Joined: Sat Sep 15, 2012 10:10 am
Location: Naples - Italy

Re: using "W-." keybind

Post by maaaaaarco »

open a terminal and do this:

Code: Select all

$ xev
Now press the key-button you want to use and read its code. For example this is the output when i press the right shift

Code: Select all

$xev
KeyRelease event, serial 41, synthetic NO, window 0x2600001,
    root 0x25c, subw 0x0, time 1549033, (-358,489), root:(262,779),
    state 0x1, keycode 62 (keysym 0xffe2, Shift_R), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
This is the line that interest you:
state 0x1, keycode 62 (keysym 0xffe2, Shift_R), same_screen YES
Shift_R it's the key-button code to use in lxde-rc.xml ;)
I'm using:
Fedora 17 Lxde Spin x86_64
KranthiKatikala
Posts: 3
Joined: Wed Oct 10, 2012 3:39 pm

Re: using "W-." keybind

Post by KranthiKatikala »

I already did that.Thanks. Both the keys are recognised. Maybe there are keybindings in other rc files which must be checked for conflicts. Where can i find them.? any suggestions? thanks.
maaaaaarco
Posts: 17
Joined: Sat Sep 15, 2012 10:10 am
Location: Naples - Italy

Re: using "W-." keybind

Post by maaaaaarco »

take a look to /etc/xdg/openbox/rc.xml
I'm using:
Fedora 17 Lxde Spin x86_64
seppalta
Posts: 449
Joined: Tue Sep 20, 2011 6:09 am
Location: USA
Contact:

Re: using "W-." keybind

Post by seppalta »

Keybindings are stored in /etc/xdg/openbox, /usr/share/lxde/openbox, ~/.config/openbox, or a slight variation of these depending upon distribution. http://lxlinux.com/#3
networker
Posts: 1
Joined: Sat Oct 20, 2012 8:41 pm

Re: using "W-." keybind

Post by networker »

KranthiKatikala wrote:I'm trying to use the following code in the lxde-rc.xml file.

Code: Select all

    </keybind>
    <keybind key="W-.">
      <action name="ToggleMaximize">
      <direction>both</direction>
      </action>
    </keybind>
But the keybind won't work. I don't mind changing the keybind to something else at all, but can anyone please direct me to the page which contains a possible explanation for this please?
Thanks. :)
Caution with the code that you posted, it has a keybind ending tag on the top, it made me an error when I rebooted and the session started, so I saw it ;)
Locked