]>
git.madduck.net Git - etc/awesome.git/blobdiff - .config/awesome/rc.lua
madduck's git repository
Every one of the projects in this repository is available at the canonical
URL git://git.madduck.net/madduck/pub/<projectpath> — see
each project's metadata for the exact URL.
All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@ git. madduck. net .
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
SSH access, as well as push access can be individually
arranged .
If you use my repositories frequently, consider adding the following
snippet to ~/.gitconfig and using the third clone URL listed for each
project:
[url "git://git.madduck.net/madduck/"]
insteadOf = madduck:
-- 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
-- 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
floatapps =
{
-- by class
+-- 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 },
-- 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.
}
-- Define if we want to use titlebar on all applications.
client.focus = c
-- Check if the application should be floating.
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
local cls = c.class
local inst = c.instance
if floatapps[cls] then
c.floating = floatapps[inst]
end
c.floating = floatapps[inst]
end
+ -- Override with tiledapps
+ c.floating = not tiledapps[inst]
+
-- Check application->screen/tag mappings.
local target
if apptags[cls] then
-- Check application->screen/tag mappings.
local target
if apptags[cls] then
-- Honor size hints
c.honorsizehints = true
-- 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
end
-- Hook function to execute when arranging the screen