Both sides previous revisionPrevious revisionNext revision | Previous revision |
dcore:migrating_from_flwm_to_lxde [2018/07/15 16:09] – various sm8ps | dcore:migrating_from_flwm_to_lxde [2018/07/15 17:30] (current) – +[quick shutdown button] sm8ps |
---|
lxpanel & | lxpanel & |
</code> | </code> |
| |
| Setting the ''desktop'' boot-code to "openbox" in your boot-loader will boot into a regular Openbox desktop with a LXPanel. |
| |
===== Menus ===== | ===== Menus ===== |
| |
Setting the ''desktop'' boot-code to "openbox" in your boot-loader will boot into a regular Openbox desktop with a LXPanel. The *Core main menu, containing the Ondemand sub-menu, is available through right-clicking on the desktop. There is another "start" menu available through LXPanel, also containing the System Tools sub-menu but not any other *Core-menu. | The *Core main menu, containing the Ondemand sub-menu, is available through right-clicking on the desktop. There is another "start" menu available through LXPanel, also containing the System Tools sub-menu but not any other *Core-menu. |
| |
For the interaction with the *Core main menu, maximized windows must leave a tiny bit of the desktop visible. Launch "Openbox Configuration Manager" from the "System" menu and set the left margin to 1 pixel. | For the interaction with the *Core main menu, maximized windows must leave a tiny bit of the desktop visible. Launch "Openbox Configuration Manager" from the "System" menu and set the left margin to 1 pixel. |
====Usage==== | ====Usage==== |
| |
An entry in the OnDemand sub-menu will call the respective script under 'ondemand/' in the tce-folder; its default content being a call to ''ondemand -e'' for the selected extension. The file names may be chosen at will. Once loaded, the applications can be found in the Applications sub-menu as well as in the categorized sub-menus of the "start" menu in LXPanel. | An entry in the OnDemand sub-menu will call the respective script under 'ondemand/' in the tce-folder; its default content being a call to ''ondemand -e'' for the selected extension. The menu entries correspond to the file names which may be chosen at will. Loaded applications can be found in the Applications sub-menu as well as in the categorized sub-menus of the "start" menu in LXPanel. |
| |
===Comment=== | ===Comment=== |
| |
The procedure for loading ondemand-applications may seem a bit round-about; however it is more convenient, indeed, than having to load them from the terminal. Of course, one would [[dcore:contributing|wish]] for a fully automated process. | The procedure for loading ondemand-applications may seem a bit round-about; however it is more convenient, indeed, than having to load them from the terminal. Of course, one would [[dcore:contributing|wish]] for a fully automated process. |
| |
| ==== Accessing the menus via keyboard ==== |
| |
| It is useful to have access to either menu via a keyboard short-cut. This is especially helpful in case that LXPanel should become invisible due to different monitor sizes. |
| |
| Add the following to the ''<keyboard>''-section of '~/.config/openbox/rc.xml': |
| <code> |
| <keybind key="C-Escape"> |
| <action name="ShowMenu"> |
| <menu>root-menu</menu> |
| </action> |
| </keybind> |
| <keybind key="C-F1"> |
| <action name="Execute"> |
| <command>lxpanelctl menu</command> |
| </action> |
| </keybind> |
| </code> |
| This will bind Ctrl-Escape to the Openbox main menu and Ctrl-F1 the "start" menu of LXPanel. |
| |
===== Compatibility with FLWM ===== | ===== Compatibility with FLWM ===== |
===== LXPanel settings ===== | ===== LXPanel settings ===== |
| |
By right-clicking on the panel, on gains access to the panel settings. From there, one may choose to add or remove panel items. | By right-clicking on the panel, on gains access to the panel settings. From there, one may choose to add, remove or configure panel items. |
| |
==== Log-out ==== | ==== Log-out ==== |
==== Resource monitor, LXTask ==== | ==== Resource monitor, LXTask ==== |
| |
LXPanel provides a resource-monitor add-in which is quite useful by itself. Furthermore, its standard action upon clicking is to launch LXTask which give a quite complete over-view of running processes. It is installed through the ''lxtask'' package. Alternatively, one may simply want to link the clicking action to the System Stats entry from *Core's main menu. This is achieved by adding "/usr/local/bin/stats" in the settings. | LXPanel provides a resource-monitor add-in which is quite useful by itself. Furthermore, its standard action upon clicking is to launch LXTask which give a quite complete over-view of running processes. It is installed through the ''lxtask'' package. Alternatively, one may want to link the clicking action to the System Stats entry from *Core's main menu. This is achieved by adding "/usr/local/bin/stats" in the settings. |
| |
==== Screen settings and external monitor ==== | ==== LXPanel menu entries and buttons for suspending to RAM or disk ==== |
| |
The built-in 'lxrandr' does not seem to work on all machines. Occasionally, it only proclaims its inability to find information about the monitor. [[http://christian.amsuess.com/tools/arandr/|Arandr]] is an even better substitute which can be imported and loaded without any issues. It installs an entry in the settings menu. | If [[dcore:suspending|suspending to RAM or disk]] works then one may want to make it easily available through a panel button. For that matter, one must first create suitable menu entries. |
| |
In case that Lxpanel should become invisible due to different monitor sizes, the main menu can still be accessed by pressing Ctrl+Esc. | First, create the directory '~/.local/share/pixmaps/' and download a [[http://wiki.tinycorelinux.net/_media/dcore:exittc_green.png|green]] and [[http://wiki.tinycorelinux.net/_media/dcore:exittc_red.png|red]] variant of the original blue icon file for the exit button into it. |
| |
==== Menu entries and panel buttons for suspending to RAM or disk ==== | |
If [[dcore:suspending|suspending to RAM or disk]] works then one may want to make it easily available through a panel button. For that matter, one must first create suitable menu entries after which it is a trivial task of adding them to the application starter containing already the [[dcore:migrating_from_flwm_to_lxde#exit_button|exit button]]. | |
| |
First, create the directory '~/.local/share/pixmaps/' and download a [[http://wiki.tinycorelinux.net/_media/dcore:exittc_green.png|green]] and [[http://wiki.tinycorelinux.net/_media/dcore:exittc_green.png|red]] variant of the original blue icon file for the exit button into it. | |
| |
Then create two files ''~/.local/share/applications/pm-{suspend,hibernate}.desktop'' with the following content, respectively. Adapt the path if a different user name applies. If applicable, one may want to use ''pm-suspend-hybrid'' instead of simple ''pm-suspend''. | Then create two files ''~/.local/share/applications/pm-{suspend,hibernate}.desktop'' with the following content, respectively. Adapt the path if a different user name applies. If applicable, one may want to use ''pm-suspend-hybrid'' instead of simple ''pm-suspend''. |
Categories=System;</code> | Categories=System;</code> |
| |
LXDE should automatically recognize the changes and show the new menu entries. If not so, then ''lxpanelctl restart'' will force the panel to re-read its configuration files. | LXPanel should automatically recognize the changes and show the new menu entries. If not so, then ''lxpanelctl restart'' will force the panel to re-read its configuration files. |
| |
| Afterwards, it is a trivial task of adding an application starter to the LXPanel items with these menu entries. |
| |
| ==== LXPanel button for quick shutdown with automatic backup ==== |
| |
| In the same light, one may want to creat a blue exit button in the panel that performs a backup of 'mydata.tgz' and shuts the machine down. |
| |
| First, create an //executable// file '~/.local/bin/backup-exittc.sh' with the following content: |
| <code> |
| #!/bin/sh |
| filetool.sh -b |
| exitcheck.sh shutdown |
| </code> |
| |
| Then create a menu entry via '~/.local/share/applications/backup-exittc.desktop', again adapting the path to the home folder if applicable. |
| <code> |
| [Desktop Entry] |
| Name=Exit w/ Backup |
| Exec=/home/tc/.local/bin/backup-exittc.sh |
| Icon=/usr/local/share/pixmaps/exittc.png |
| Type=Application |
| Categories=System; |
| </code> |
| |
| Finally, add the menu entry to the application launcher in LXPanel. |
===== Openbox settings ===== | ===== Openbox settings ===== |
| |
Since LXDE is based on Openbox, it may be helpful to consider one of the many Openbox guides available over the internet. As usual, the [[https://wiki.archlinux.org/index.php/openbox|Arch Wiki] features a very complete over-view. | It may be helpful to consider one of the many Openbox guides available over the internet. As usual, the [[https://wiki.archlinux.org/index.php/openbox|Arch Wiki]] features a very complete over-view. |
| |
==== Disabling the scroll wheel switching desktops ==== | ==== Disabling the scroll wheel switching desktops ==== |
| |
Although strictly speaking an issue of Openbox, this quick guide is included here nevertheless. Scrolling on the desktop with either mouse wheel or (inadvertedly) the touchpad is interpreted as a command to switch desktops. This can be changed by commenting out (enclose by ''<!--'' and ''-->'') or deleting the following lines from the section <context name="Desktop"> of '~/.config/openbox/lxde-rc.xml'. | Scrolling on the desktop with either mouse wheel or (inadvertedly) the touchpad is interpreted as a command to switch desktops. This can be changed by commenting out (enclose by ''<!--'' and ''-->'') or deleting the following lines from the section <context name="Desktop"> of '~/.config/openbox/lxde-rc.xml'. |
<code> | <code> |
<mousebind button="Up" action="Click"> | <mousebind button="Up" action="Click"> |