From 4401f336053bc8e7377f8b660e4e93061098b67e Mon Sep 17 00:00:00 2001 From: Yessiest Date: Fri, 28 Jan 2022 22:20:41 +0400 Subject: [PATCH] added kill/stop functions to top menu --- core/titlebar.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/titlebar.lua b/core/titlebar.lua index af98678..b77f58f 100644 --- a/core/titlebar.lua +++ b/core/titlebar.lua @@ -71,6 +71,16 @@ return function(c) }, { "Toggle on tag", toggle_screentags + }, + { "Stop task", + function() + awful.spawn("kill "..tostring(c.pid)) + end + }, + { "Kill task", + function() + awful.spawn("kill -s KILL "..tostring(c.pid)) + end } }, vertical = true