In awesome wm when I press mod-q
I kill the current window. I would like to pop a yes/no dialog to confirm the action:
if zenity --question --title='Quit?' --text='Quit?'; then kill_the_window; fi
But, the killing function is run from the Lua code in rc.lua
, not from the shell.
awful.key({ modkey, }, "q", function (c) c:kill() end)
How to make the awesome wait for the zenity output before killing the window,