editor = os.getenv("EDITOR") or "editor"
editor_cmd = terminal .. " -e " .. editor
+hostname = awful.util.pread("hostname -f"):gsub("\n", "")
+
-- Default modkey.
-- Usually, Mod4 is the key with a logo between Control and Alt.
-- If you do not like this or do not have such a key,
-- {{{ Tags
-- Define a tag table which hold all screen tags.
-tags = {}
+tags = {names={"mail","emacs","www","remotes",5,6,7,8,9}
+ }
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, layouts[1])
+ defaultlayout=layouts[9]
+ if s == 1 and hostname == "archimedes.ucr.edu" then
+ defaultlayout=layouts[2]
+ end
+ tags[s] = awful.tag(tags.names, s, defaultlayout)
end
-- }}}
awful.key({ modkey, "Control" }, "space", awful.client.floating.toggle ),
awful.key({ modkey, }, "space", function (c) c:swap(awful.client.getmaster()) end),
awful.key({ modkey, }, "o", awful.client.movetoscreen ),
- awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end)
+ awful.key({ modkey, }, "t", function (c) c.ontop = not c.ontop end),
awful.key({ modkey, "Shift" }, "r", function (c) c:redraw() end),
awful.key({ modkey, "Shift" }, "m", function (c) c.minimized = not c.minimized end),
awful.key({ modkey, }, "m",
keys = clientkeys,
buttons = clientbuttons } },
{ rule = { class = "MPlayer" },
- properties = { floating = true } },
+ properties = { floating = true , ontop=true } },
{ rule = { class = "pinentry" },
- properties = { floating = true } },
+ properties = { floating = true , ontop=true } },
{ rule = { class = "gimp" },
properties = { floating = true } },
-- Set Firefox to always map on tags number 2 of screen 1.
c = client.focus
if c then
local g = c:geometry()
- mouse.coords({ x = g.x + 30, y = g.y + 30}, true)
+ mouse.coords({ x = g.x + 1, y = g.y + 1}, true)
end
end