Hello

I've looked at the wiki article 'Shutdown Dialog' and added an alternate script (the main improvement being improved keyboard-friendliness :) ). Feel free to comment on it.

Best Regards
Alex

On 02/21/2016 02:47 PM, Abraham Baker wrote:
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 <dan.s...@gmail.com <mailto:dan.s...@gmail.com>> 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" <dan.s...@gmail.com
    <mailto:dan.s...@gmail.com>> wrote:

        I just ran into this:
        http://awesome.naquadah.org/wiki/ShutdownDialog

        On Feb 21, 2016 8:48 PM, "A M" <alex334...@gmail.com
        <mailto:alex334...@gmail.com>> 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
            awesome-unsubscr...@naquadah.org
            <mailto:awesome-unsubscr...@naquadah.org>.



Reply via email to