From: martin f. krafft Date: Tue, 2 Sep 2008 21:29:10 +0000 (+0100) Subject: make tiling/floating/maximising flexible, floating by default X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/c8d5858492d2340b9d769d52d888a4ea6bc81a18 make tiling/floating/maximising flexible, floating by default Signed-off-by: martin f. krafft --- diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 8d95a9f..5800242 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -40,6 +40,7 @@ layouts = -- the application class or instance. The instance is useful when running -- a console app in a terminal like (Music on Console) -- xterm -name mocp -e mocp +-- OVERRULED BY TILEDAPPS BELOW floatapps = { -- by class @@ -51,12 +52,29 @@ floatapps = ["Play stream"] = true } +-- Applications that should never float, assuming everything else floats +-- (by instance) +tiledapps = +{ + ["urxvt"] = true +} + +-- Applications that should be maximised +-- (by instance) +maxapps = +{ + ["Navigator"] = true, + -- jpilot is -v + ["-v"] = true +} + -- Applications to be moved to a pre-defined tag by class or instance. -- Use the screen and tags indices. apptags = { ["Iceweasel"] = { screen = 1, tag = 9 }, - ["jpilot"] = { screen = 1, tag = 8 }, + -- jpilot is -v + ["-v"] = { screen = 1, tag = 8 }, } -- Define if we want to use titlebar on all applications. @@ -399,6 +417,7 @@ function hook_manage(c) client.focus = c -- Check if the application should be floating. + -- OVERRIDDEN, SEE tiledapps BELOW local cls = c.class local inst = c.instance if floatapps[cls] then @@ -407,6 +426,9 @@ function hook_manage(c) c.floating = floatapps[inst] end + -- Override with tiledapps + c.floating = not tiledapps[inst] + -- Check application->screen/tag mappings. local target if apptags[cls] then @@ -421,6 +443,11 @@ function hook_manage(c) -- Honor size hints c.honorsizehints = true + + -- Maximise some + if maxapps[inst] then + awful.client.maximize(c) + end end -- Hook function to execute when arranging the screen