Keyboard shortcuts not working

Please post all general support questions for LXDE here.
Locked
paul1149
Posts: 5
Joined: Fri Jul 13, 2012 1:31 am

Keyboard shortcuts not working

Post by paul1149 »

Hi,

New to LXDE here, and really enjoying it on ubuntu 12.04. I like the configurability, style and lightness -a refreshing change from the backward trend.

I've found the file .config/openbox/lxde-rc.xml, where keybindings are stored. I have two problems:

First, there are several ways to open the system menu via keyboard, and none of them are working. Here is a mess of code from the file, none of which is working:

<!--keybindings for LXPanel --><keybind key="W-r"><action name="Execute"><command>lxpanelctl run</command></action></keybind><keybind key="A-F2"><action name="Execute"><command>lxpanelctl run</command></action></keybind><keybind key="C-Escape"><action name="Execute"><command>lxpanelctl menu</command></action></keybind>

Second, I would like to map some keys to perform basic window functions such as minimize, maximize, but I'm not sure of the syntax. One attempt that didn't work is <keybind key="A-F5"><action name="MinimizeWindow"/></keybind>. My method is to make the change, save the file, but not reboot.

I'd like to get this working, so I could use the keyboard for the "start" menu, and attach gesture to the window actions.

Thanks,
p.
seppalta
Posts: 449
Joined: Tue Sep 20, 2011 6:09 am
Location: USA
Contact:

Re: Keyboard shortcuts not working

Post by seppalta »

You said you were new to Linux, so I'll point out that A=alternate, W=windows key, C=control, which you probably knew. I've done many LXDE installs, never had a problem with key bindings not working as set-up in lxde-rc.xml.
paul1149
Posts: 5
Joined: Fri Jul 13, 2012 1:31 am

Re: Keyboard shortcuts not working

Post by paul1149 »

Thank you. Yes, I had picked that up from the xml file.

Oddly, C-Escape did work fleetingly during one boot-up, but then stopped, and hasn't worked again.

Also, I reinstalled lxde, thinking that maybe uninstalling lubuntu had broken something. Still not working.

I have added some window commands to the xml file, such as togglemaximize, and launch Opera, that are working. So the problem seems to be confined to the main menu.
seppalta
Posts: 449
Joined: Tue Sep 20, 2011 6:09 am
Location: USA
Contact:

Re: Keyboard shortcuts not working

Post by seppalta »

All the following Directories include the rc.xml file:
  • /etc/xdg/openbox /usr/share/lxde/openbox ~/.config/openbox .
. Check them to see if they are the same with regard to the items bothering you.
saadfarooq
Posts: 1
Joined: Tue Apr 30, 2013 11:15 pm

Re: Keyboard shortcuts not working

Post by saadfarooq »

I have the same problem for a while now.

However, I think it's somehow related to switching desktops. I use the Alt+F2 shortcut a lot and it seems like it only stops working if I switch around between desktops.
defaye
Posts: 1
Joined: Wed May 21, 2014 11:19 am

Re: Keyboard shortcuts not working

Post by defaye »

I'm having a similar issue on Lubuntu 14.04. Most commands are working but some are not. Alt+F2 for run menu doesn't work. Ctrl+Alt+l for lock window doesn't work. I found a solution for the run menu by editing the

Code: Select all

<command>...</command>
in ~/.config/openbox/lubuntu-rc.xml to

Code: Select all

lxpanelctl run
. See http://ubuntuforums.org/showthread.php?t=2217758
Rex Bouwense
Posts: 1109
Joined: Sat Aug 27, 2011 5:44 pm
Location: Sierra Vista, Arizona USA
Contact:

Re: Keyboard shortcuts not working

Post by Rex Bouwense »

Welcome to the LXDE forum. We are small forum and appreciate all information provided. For ease of those coming after us it might have been simplier to start your own thread because the versions talked about are old and no longer supported. Once again welcome. Stick around and helpsome more.
Rex
Locked