Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

#! /bin/bash # Made with gtkdialog (http://pclosmag.com/html/Issues/200910/page21.

html) export MAIN_DIALOG=' <window window_position="1" title="Exit menu" width_request="300" height_request ="180" decorated="false"> <vbox spacing="5"> <button> <label>Shutdown</label> <input file icon="exit"></input> <action>systemctl poweroff</action> <action type="exit">Exit after action</action> </button> <button> <label>Restart</label> <input file icon="view-refresh"></input> <action>systemctl reboot</action> <action type="exit">Exit after action</action> </button> <button> <label>Suspend</label> <input file icon="sleep"></input> <action>systemctl hybrid-sleep</action> <action type="exit">Exit after action</action> </button> <button> <label>Hibernate</label> <input file icon="document-save"></input> <action>systemctl hibernate</action> <action type="exit">Exit after action</action> </button> <button> <label>Cancel</label> <input file icon="cancel"></input> <action type="exit">Exit by button</action> </button> </vbox> </window>' gtkdialog --program MAIN_DIALOG

You might also like