X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=.config%2Fawesome%2Frc.lua;h=e7e8c87174fdd9e43721fea5b47f14dc90caa11e;hb=4e9b428b6e305250f462b510f7a53460ea08f298;hp=813cea915b5053798d52c953590c4e77240a2162;hpb=75b6d1db05411de0ce9ce782cd109889f6d96764;p=x_base.git diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index 813cea9..e7e8c87 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -22,6 +22,8 @@ terminal = "x-terminal-emulator" 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, @@ -49,10 +51,15 @@ layouts = -- {{{ 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 -- }}} @@ -249,7 +256,7 @@ clientkeys = awful.util.table.join( 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", @@ -359,7 +366,7 @@ function warp_mouse() 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