Send sigterm on middle click on title bar

This commit is contained in:
Mutzi 2023-01-20 16:24:53 +01:00
parent 2f5b39d7a4
commit 3e7810e664

View File

@ -776,6 +776,10 @@ client.connect_signal("request::titlebars", function(c)
c:emit_signal("request::activate", "titlebar", {raise = true}) c:emit_signal("request::activate", "titlebar", {raise = true})
awful.mouse.client.move(c) awful.mouse.client.move(c)
end), end),
awful.button({ }, 2, function()
--c:emit_signal("request::activate", "titlebar", {raise = true})
awesome.kill(c.pid, awesome.unix_signal["SIGTERM"])
end),
awful.button({ }, 3, function() awful.button({ }, 3, function()
c:emit_signal("request::activate", "titlebar", {raise = true}) c:emit_signal("request::activate", "titlebar", {raise = true})
awful.mouse.client.resize(c) awful.mouse.client.resize(c)