You are not logged in.
My lua skills are beginner at best, but does anyone have a quick script or tip to provide an "Are you sure?" confirmation for the awesome WM "quit" action - mapped to Meta-Shift-Q by default...
I have on occassion accidentally hit that command when I meant the Kill window key instead....Kills all open windows, apps. Not fun.
Last edited by twelveeighty (2012-07-25 14:50:25)
Offline
Probably not what you're looking for, but why don't you just map the quit action to Mod+Ctrl+Shift+q
Should make it quite clear to your fingers that you definitely want out ![]()
Edit: or remap your quit window action to something else (eg Mod+Shift+c)
Last edited by JackH79 (2012-07-24 08:33:13)
Offline
Yeah, I guess. I was hoping that was an easy way to get a prompt at the top bar, where you type to launch a new process, and I would just type 'Y' to close awesome after the Quit command.
Offline
I have on occassion accidentally hit that command when I meant the Kill window key instead
I'm honestly curious why and how often you have to kill windows. I don't use Awesome, so I may not understand, but don't most windows have their own "close" mechanism (you close the app, or exit the shell, or...). I use ratpoison, and I can't even remember what the "kill window" command is mapped to, that's how infrequently I need it.
Offline
My lua skills are beginner at best, but does anyone have a quick script or tip to provide an "Are you sure?" confirmation for the awesome WM "quit" action - mapped to Meta-Shift-Q by default...
I have on occassion accidentally hit that command when I meant the Kill window key instead....Kills all open windows, apps. Not fun.
I use dmenu for the task:
cnfrm = "echo -e 'No\nYes' | dmenu -p Quit?"
quit = function()
if awful.util.pread(cnfrm):sub(1, 3) == "Yes" then
awesome.quit()
end
endOffline
Also have a look at how the myawesomemenu is created and how it is shown with meta+w.
That way you don't need dmenu.
Last edited by derhamster (2012-07-24 21:48:31)
Offline
I'm honestly curious why and how often you have to kill windows. I don't use Awesome, so I may not understand, but don't most windows have their own "close" mechanism (you close the app, or exit the shell, or...). I use ratpoison, and I can't even remember what the "kill window" command is mapped to, that's how infrequently I need it.
In awesome that kill is the equivalent of clicking the x on the top right of a window in other, "less than awesome" WMs. It's not the kill shell command. Some popup windows and mostly Java apps have to be closed that way. Nothing serious, as long as you don't confuse it with the Quit keyboard shortcut.
Offline