On 11/17/23 21:28, ToddAndMargo via users wrote:
> Create a .desktop file that runs "poweroff" or
"reboot" depending on
> what you're wanting to do.
Thank you!
That will work perfectly.
I can easily work this into a bash script.
$ Xdialog --icon
"/usr/share/icons/hicolor/48x48/actions/xfsm-shutdown.png" --wrap
--title "Power Off" --yesno 'Power off?' 8 40; echo $?