From e5c38ad17f6a055a5929fd32d157c78f7d41404a Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 11 Aug 2008 18:20:00 +0200 Subject: [PATCH] awesomerc: support no layout Signed-off-by: Julien Danjou --- awesomerc.lua.in | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/awesomerc.lua.in b/awesomerc.lua.in index 1e35e228..f7d6fb63 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -382,8 +382,13 @@ end -- Hook function to execute when arranging the screen -- (tag switch, new client, etc) function hook_arrange(screen) - mylayoutbox[screen].text = - "" + local layout = awful.layout.get(screen) + if layout then + mylayoutbox[screen].text = + "" + else + mylayoutbox[screen].text = "No layout." + end -- If no window has focus, give focus to the latest in history if not client.focus_get() then