From 595959beed64e5bbd6700fd28ab675d2308aa87e Mon Sep 17 00:00:00 2001 From: anakha Date: Fri, 4 Jun 2021 02:58:44 -0400 Subject: [PATCH] refactor --- README => README.md | 0 init.lua | 13 +++++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) rename README => README.md (100%) diff --git a/README b/README.md similarity index 100% rename from README rename to README.md diff --git a/init.lua b/init.lua index 956e32d..2b9be2f 100644 --- a/init.lua +++ b/init.lua @@ -1,5 +1,8 @@ --- allows automatically focusing back to the previous client --- on window close or minimize. + +--+ allows automatically focusing back to the previous client +--> on window close (unmanage) or minimize. + +-------------------------------------------------------------------> methods ; function backham() local s = awful.screen.focused() @@ -10,8 +13,10 @@ function backham() end end +--------------------------------------------------------------------> signal ; + client.connect_signal("property::minimized", backham) --- attach to minimized state +--+ attach to minimized state client.connect_signal("unmanage", backham) --- attach to closed state \ No newline at end of file +--+ attach to closed state \ No newline at end of file