mirror of
https://github.com/tuxdotrs/tawm.git
synced 2025-07-06 21:16:35 +05:30
add force kill keybinding
This commit is contained in:
@ -14,6 +14,11 @@ client.connect_signal("request::default_keybindings", function()
|
||||
awful.key({ modkey }, "q", function(c)
|
||||
c:kill()
|
||||
end, { description = "close", group = "client" }),
|
||||
awful.key({ modkey, mod.shift }, "q", function(c)
|
||||
if c.pid then
|
||||
awful.spawn("kill -9 " .. c.pid)
|
||||
end
|
||||
end, { description = "force close", group = "client" }),
|
||||
awful.key({ modkey }, "space", awful.client.floating.toggle, { description = "toggle floating", group = "client" }),
|
||||
})
|
||||
end)
|
||||
|
Reference in New Issue
Block a user