Add logout menu using xlunch. Wait for --center option

pull/40/head
TomasM 2017-11-06 17:46:58 -05:00
parent a3c294e416
commit 345243b7b4
6 changed files with 28 additions and 2 deletions

View File

@ -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

View File

@ -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]

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB