This commit is contained in:
anakha 2021-05-28 02:08:25 -04:00
commit cc2410d696
1 changed files with 17 additions and 0 deletions

17
init.lua Normal file
View File

@ -0,0 +1,17 @@
-- allows automatically focusing back to the previous client
-- on window close or minimize.
function backham()
local s = awful.screen.focused()
local c = awful.client.focus.history.get(s, 0)
if c then
client.focus = c
c:raise()
end
end
client.connect_signal("property::minimized", backham)
-- attach to minimized state
client.connect_signal("unmanage", backham)
-- attach to closed state