Welcome to the Tiny Core Linux Wiki at tinycorelinux.net!

Differences

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

Link to this comparison view

dcore:migrating_from_flwm_to_lxde [2018/07/15 13:52]
sm8ps [LXPanel menu entries and buttons for suspending to RAM or disk]
dcore:migrating_from_flwm_to_lxde [2018/07/15 14:30] (current)
sm8ps +[quick shutdown button]
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