add force kill keybinding

This commit is contained in:
2024-08-06 06:30:42 +05:30
parent 2ffe198189
commit 6282114703

View File

@ -14,6 +14,11 @@ client.connect_signal("request::default_keybindings", function()
awful.key({ modkey }, "q", function(c) awful.key({ modkey }, "q", function(c)
c:kill() c:kill()
end, { description = "close", group = "client" }), 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" }), awful.key({ modkey }, "space", awful.client.floating.toggle, { description = "toggle floating", group = "client" }),
}) })
end) end)