Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
dcore:migrating_from_flwm_to_lxde [2018/07/15 16:52] – [LXPanel menu entries and buttons for suspending to RAM or disk] sm8psdcore:migrating_from_flwm_to_lxde [2018/07/15 17:30] (current) – +[quick shutdown button] sm8ps
Line 159: Line 159:
  
 Afterwards, it is a trivial task of adding an application starter to the LXPanel items with these menu entries. 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 =====
  
Print/export
QR Code
QR Code dcore:migrating_from_flwm_to_lxde (generated for current page)