diff --git a/Slax/debian/modules/03-desktop/rootcopy/etc/xlunch/logout.dsv b/Slax/debian/modules/03-desktop/rootcopy/etc/xlunch/logout.dsv new file mode 100644 index 0000000..40a9f82 --- /dev/null +++ b/Slax/debian/modules/03-desktop/rootcopy/etc/xlunch/logout.dsv @@ -0,0 +1,3 @@ +Logout;/usr/share/icons/hicolor/128x128/actions/logout.png;logout +Restart;/usr/share/icons/hicolor/128x128/actions/restart.png;restart +Shut down;/usr/share/icons/hicolor/128x128/actions/shutdown.png;shutdown diff --git a/Slax/debian/modules/03-desktop/rootcopy/root/.fluxbox/menu b/Slax/debian/modules/03-desktop/rootcopy/root/.fluxbox/menu index b04c563..5b3e556 100644 --- a/Slax/debian/modules/03-desktop/rootcopy/root/.fluxbox/menu +++ b/Slax/debian/modules/03-desktop/rootcopy/root/.fluxbox/menu @@ -2,9 +2,10 @@ [exec] (Terminal) { xterm -ls } [exec] (Web browser) { chromium } + [exec] (Text editor) { leafpad } + [exec] (Calculator) { qalculate } [separator] [workspaces] (Workspaces) - [exec] (Reboot computer) { reboot } - [exit] (Exit to Textmode) + [exec] (Exit) { fblogout } [end] diff --git a/Slax/debian/modules/03-desktop/rootcopy/usr/bin/fblogout b/Slax/debian/modules/03-desktop/rootcopy/usr/bin/fblogout new file mode 100755 index 0000000..b5538b7 --- /dev/null +++ b/Slax/debian/modules/03-desktop/rootcopy/usr/bin/fblogout @@ -0,0 +1,22 @@ +#!/bin/bash + +exec xlunch --input /etc/xlunch/logout.dsv --noprompt \ + --background /usr/share/wallpapers/wp.jpg --font DejaVuSans/11 \ + --voidclickterminate --iconpadding 30 --textpadding 10 \ + --paddingswap --leastmargin 10 --hidemissing --iconsize 128 \ + --highlight /usr/share/icons/hicolor/128x128/apps/xlunch_highlight.png \ + --outputonly | while read LINE; do + + if [ "$LINE" = "logout" ]; then + killall Xorg + fi + + if [ "$LINE" = "restart" ]; then + reboot + fi + + if [ "$LINE" = "shutdown" ]; then + poweroff + fi + +done diff --git a/Slax/debian/modules/03-desktop/rootcopy/usr/share/icons/hicolor/128x128/actions/logout.png b/Slax/debian/modules/03-desktop/rootcopy/usr/share/icons/hicolor/128x128/actions/logout.png new file mode 100644 index 0000000..fa6dddb Binary files /dev/null and b/Slax/debian/modules/03-desktop/rootcopy/usr/share/icons/hicolor/128x128/actions/logout.png differ diff --git a/Slax/debian/modules/03-desktop/rootcopy/usr/share/icons/hicolor/128x128/actions/restart.png b/Slax/debian/modules/03-desktop/rootcopy/usr/share/icons/hicolor/128x128/actions/restart.png new file mode 100644 index 0000000..7c80934 Binary files /dev/null and b/Slax/debian/modules/03-desktop/rootcopy/usr/share/icons/hicolor/128x128/actions/restart.png differ diff --git a/Slax/debian/modules/03-desktop/rootcopy/usr/share/icons/hicolor/128x128/actions/shutdown.png b/Slax/debian/modules/03-desktop/rootcopy/usr/share/icons/hicolor/128x128/actions/shutdown.png new file mode 100644 index 0000000..8c25c3a Binary files /dev/null and b/Slax/debian/modules/03-desktop/rootcopy/usr/share/icons/hicolor/128x128/actions/shutdown.png differ