awesomewm-backham/init.lua

17 lines
423 B
Lua
Raw Normal View History

2021-05-28 08:08:25 +02:00
-- 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