I just map Shift+Pause/break to "systemctl suspend" or "reboot" or
"poweroff":
awful.key({"Shift"}, "#127", function () awful.util.spawn("systemctl
suspend") end),I haven't needed a dialog yet since it would be really hard to press both Shift and Pause at the same time by accident, but that looks like a great idea for when other people need to shutdown the computer. On Sun, Feb 21, 2016 at 5:57 AM, Daniel Sont <[email protected]> wrote: > Really, all you need is zenity. If you look into the docs I imagine it > should be easy to hook up a confirmation box to a shutdown command with > some &&s > On Feb 21, 2016 8:53 PM, "Daniel Sont" <[email protected]> wrote: > >> I just ran into this: http://awesome.naquadah.org/wiki/ShutdownDialog >> On Feb 21, 2016 8:48 PM, "A M" <[email protected]> wrote: >> >>> Hello >>> >>> Is possible to create key bindings for shutting down or rebooting the >>> computer? >>> >>> As a next step, it might be good to have some form of secondary >>> confirmation that the user really wants to do this action (in case the key >>> binding was entered accidentally). I guess maybe some simple popup >>> window/dialog might be an easy solution? "Reboot computer? Yes/No" >>> >>> Best Regards >>> Alex >>> >>> -- >>> To unsubscribe, send mail to [email protected]. >>> >>
