document where the posix module is on Debian
[notion/jeffpc.git] / mod_tiling / mod_tiling.lua
blobb899e2cd6d5e62abd7c87653ab4429bf99e73bec
1 --
2 -- ion/mod_menu/mod_tiling.lua -- Tiling module stub loader
3 --
4 -- Copyright (c) Tuomo Valkonen 2004-2009.
5 --
6 -- Ion is free software; you can redistribute it and/or modify it under
7 -- the terms of the GNU Lesser General Public License as published by
8 -- the Free Software Foundation; either version 2.1 of the License, or
9 -- (at your option) any later version.
12 -- This is a slight abuse of the package.loaded variable perhaps, but
13 -- library-like packages should handle checking if they're loaded instead of
14 -- confusing the user with require/include differences.
15 if package.loaded["mod_tiling"] then return end
17 if not ioncore.load_module("mod_tiling") then
18 return
19 end
22 -- Change default layout
23 if ioncore.getlayout("default")==ioncore.getlayout("empty") then
24 ioncore.deflayout("default", {
25 managed = {
27 type = "WTiling",
28 bottom = true,
32 end
35 -- Mark ourselves loaded.
36 package.loaded["mod_tiling"]=true