From 3e7810e664c83078bc494e7358f05df76ade5d02 Mon Sep 17 00:00:00 2001 From: Mutzi Date: Fri, 20 Jan 2023 16:24:53 +0100 Subject: [PATCH] Send sigterm on middle click on title bar --- awesome/rc.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/awesome/rc.lua b/awesome/rc.lua index f1db03e..c95110d 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -776,6 +776,10 @@ client.connect_signal("request::titlebars", function(c) c:emit_signal("request::activate", "titlebar", {raise = true}) awful.mouse.client.move(c) 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() c:emit_signal("request::activate", "titlebar", {raise = true}) awful.mouse.client.resize(c)