4

In KDE's menu editor, one can click on the "Advanced tab" and then set a keyboard shortcut to launch an application.

How can I emulate that functionality in LXDE?

2 Answers 2

2

http://en.gentoo-wiki.com/wiki/Openbox#Create_custom_keyboard_shortcuts

It might not emulate the functionality completely, but it can run commands via keyboard shortcuts.

1
  • Link is down. :(
    – ttt
    Apr 28, 2017 at 20:28
5

More documentation is here:

on OpenSuSE, one edits the appropriate file in ~/.config/openbox, namely ~/.config/openbox/lxde-rc.xml, and can update the running configuration with openbox-lxde --reconfigure

I added the following in the <keyboard> section,

<!-- Maximize commands -->
<keybind key="W-Up">
    <action name="ToggleMaximizeFull" />
</keybind>

<keybind key="W-S-Up">
    <action name="ToggleMaximizeVert" />
</keybind>

<keybind key="W-S-Down">
    <action name="ToggleMaximizeHorz" />
</keybind>

<!-- application execute commands -->
<keybind key="W-f">
    <action name="Execute">
        <command>chromium</command>
    </action>
</keybind>

<keybind key="W-t">
    <action name="Execute">
        <command>lxterminal</command>
    </action>
</keybind>

<!-- logout -->
<keybind key="C-A-S-Delete">
    <action name="Exit">
        <prompt>no</prompt>
    </action>
</keybind>

<!-- window movement -->
<keybind key="W-A-Up">
    <action name="MoveToEdgeNorth"/>
</keybind>

<keybind key="W-A-Down">
    <action name="MoveToEdgeSouth"/>
</keybind>

<keybind key="W-A-Left">
    <action name="MoveToEdgeWest"/>
</keybind>

<keybind key="W-A-Right">
    <action name="MoveToEdgeEast"/>
</keybind>

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .