Code: Select all
#!/bin/bash
#produce set of Action Buttons on screen
yad --form --center --width=250 --title="Exit Actions" --skip-taskbar \
--window-icon="/usr/share/icons/mxflux.png" \
--field="Refresh":fbtn "fluxbox-remote restart" \
--field="Logout":fbtn "fluxbox-remote 'Exit' | killall fluxbox" \
--field="Reboot":fbtn "sudo /sbin/reboot" \
--field="Shutdown":fbtn "sudo /sbin/halt" \
--field="Suspend":fbtn "sudo pm-suspend" \
--button=gtk-cancel:1 \
exit