From 4862a629a2757785965ba2c1c880182b9afe68a8 Mon Sep 17 00:00:00 2001 From: Yorick van Pelt Date: Fri, 26 Aug 2016 17:02:46 +0200 Subject: [PATCH] remove awesome/lain --- .gitmodules | 3 --- awesome/lain | 1 - awesome/lain_patch.diff | 12 ++++++++++++ 3 files changed, 12 insertions(+), 4 deletions(-) delete mode 160000 awesome/lain create mode 100644 awesome/lain_patch.diff diff --git a/.gitmodules b/.gitmodules index 019644f..144bf7f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,6 +1,3 @@ [submodule "pentadactyl/external/pentadactyl-solarized"] path = pentadactyl/external/pentadactyl-solarized url = https://github.com/claytron/pentadactyl-solarized -[submodule "awesome/lain"] - path = awesome/lain - url = https://github.com/copycat-killer/lain diff --git a/awesome/lain b/awesome/lain deleted file mode 160000 index 27ebd0a..0000000 --- a/awesome/lain +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 27ebd0a30d9634ea403a4c9f3c2139c2498faaea diff --git a/awesome/lain_patch.diff b/awesome/lain_patch.diff new file mode 100644 index 0000000..24e0ca8 --- /dev/null +++ b/awesome/lain_patch.diff @@ -0,0 +1,12 @@ +diff --git a/layout/centerfair.lua b/layout/centerfair.lua +index 5022726..5c63cfa 100644 +--- a/layout/centerfair.lua ++++ b/layout/centerfair.lua +@@ -70,6 +70,7 @@ function centerfair.arrange(p) + if #cls < num_x + then + -- Less clients than the number of columns, let's center it! ++ if #cls == 1 then width = width * 1.5 end + local offset_x = wa.x + (wa.width - #cls*width - (#cls - 1)*useless_gap) / 2 + local g = {} + g.y = wa.y + useless_gap