4

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,

Community
  • 1
  • 1
Jakub M.
  • 32,471
  • 48
  • 110
  • 179

1 Answers1

2

Awesome is written in lua, so all you need to know is how to capture the exit status of a program run by lua. See this question.

Community
  • 1
  • 1
Quinn Strahl
  • 1,718
  • 1
  • 16
  • 22