]> git.donarmstrong.com Git - x_base.git/commitdiff
fix up tags and set default layout sanely
authorDon Armstrong <don@donarmstrong.com>
Sat, 28 Sep 2013 00:24:01 +0000 (17:24 -0700)
committerDon Armstrong <don@donarmstrong.com>
Sat, 28 Sep 2013 00:24:01 +0000 (17:24 -0700)
.config/awesome/rc.lua

index 1cfa1c1b05e5c384bca84eaa018a3d2d74fe4fa1..e7e8c87174fdd9e43721fea5b47f14dc90caa11e 100644 (file)
@@ -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
 -- }}}