-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi list,

you all heard the stories. Some evil genius changed the default layout to
implicitly be "floating" and awesome users all over the world started screaming
since they couldn't figure out how to change this back to their beloved
$RANDOM_LAYOUT_HERE.

Don't worry, you life is save now! The attached patch makes this easier!

awful.tag() is now called with its third argument being the first entry in the
layout table. Problem is, people would get the tile layout as the default again.
To avoid this horrible, horrible thing, "floating" is moved to the beginning of
the layouts table.

Cheers,
Uli

P.S.:
I think there was such a patch before already, but atm I'm too blind to find it.
- --
"Do you know that books smell like nutmeg or some spice from a foreign land?"
                                                  -- Faber in Fahrenheit 451
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQEcBAEBCAAGBQJLLzFcAAoJECLkKOvLj8sGd5wH/1fVFAIJe5DK7dAXgN/xd3Zr
f0wc6yjbkNFE7gtvehGVzWginVCmBUwj8vWnioedj2Mtg8ob4DrU+6INkqY3RcE6
n1E9TthqFeF/9TN05wIwrofyEx4j5LHQS6XjR/jL4KPrZe3ofLU2gUlo/v0cWtfz
YXJjReUzemd6sc9Sxz5g7zisLkibNdzePM4lfrPBjlFPgYA6Oug7BER57A9wXqfp
axy3VH/QSPkhkrZGkMuuPJhQZXQ1UdcC2zAZUygRnBrUKoG7EMK5rvcURrEZnMRp
RsQeIv0i77ky6NZrSiAsfI3JkXLCfN1R4Hz81Tj+MfiCIK39FpsTQhKO8VKr0K0=
=hYC5
-----END PGP SIGNATURE-----
>From 8e17ec5fbac50245f3bae68fc44a3bef25caa1fa Mon Sep 17 00:00:00 2001
From: Uli Schlachter <[email protected]>
Date: Mon, 21 Dec 2009 09:18:51 +0100
Subject: [PATCH] Make it easier to change the default layout

In older versions of awesome, the first entry in the layouts table was the
default layout. Currently it's always the floating layout.

With this patch the default is again the first entry in the layouts table.  At
the same time, floating is moved to be the first entry, so this patch doesn't
change any behavior at all.

Signed-off-by: Uli Schlachter <[email protected]>
---
 awesomerc.lua.in |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/awesomerc.lua.in b/awesomerc.lua.in
index d16ca3e..1c7f33d 100644
--- a/awesomerc.lua.in
+++ b/awesomerc.lua.in
@@ -26,6 +26,7 @@ modkey = "Mod4"
 -- Table of layouts to cover with awful.layout.inc, order matters.
 layouts =
 {
+    awful.layout.suit.floating,
     awful.layout.suit.tile,
     awful.layout.suit.tile.left,
     awful.layout.suit.tile.bottom,
@@ -36,8 +37,7 @@ layouts =
     awful.layout.suit.spiral.dwindle,
     awful.layout.suit.max,
     awful.layout.suit.max.fullscreen,
-    awful.layout.suit.magnifier,
-    awful.layout.suit.floating
+    awful.layout.suit.magnifier
 }
 -- }}}
 
@@ -46,7 +46,7 @@ layouts =
 tags = {}
 for s = 1, screen.count() do
     -- Each screen has its own tag table.
-    tags[s] = awful.tag({ 1, 2, 3, 4, 5, 6, 7, 8, 9 }, s)
+    tags[s] = awful.tag({ 1, 2, 3, 4, 5, 6, 7, 8, 9 }, s, layouts[1])
 end
 -- }}}
 
-- 
1.6.5

Reply via email to