How can I add a LXDE shortcut to launch an application?

10,354

Solution 1

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.

Solution 2

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>
Share:
10,354

Related videos on Youtube

gatoatigrado
Author by

gatoatigrado

see website (zoratung.com)

Updated on September 17, 2022

Comments

  • gatoatigrado
    gatoatigrado almost 2 years

    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?

  • Tadej
    Tadej about 7 years
    Link is down. :(