From 7db1ce9b0a760da6ea94c0464f22b878cf3aa0f7 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 21 Aug 2014 20:13:58 +0200 Subject: [PATCH] Specify different layouts per machine --- awesome/.config/awesome/rc.lua | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua index 16e1492..29a4053 100644 --- a/awesome/.config/awesome/rc.lua +++ b/awesome/.config/awesome/rc.lua @@ -19,6 +19,7 @@ package.path = local avandu = require 'avandu' local maildir_base = os.getenv("HOME") .. "/documents/mail/" +local hostname = posix.uname("%n") function new_mail(maildir) local count = 0 @@ -88,21 +89,12 @@ editor_cmd = editor modkey = "Mod4" -- Table of layouts to cover with awful.layout.inc, order matters. -local layouts = -{ - awful.layout.suit.tile, - -- awful.layout.suit.tile.left, - -- awful.layout.suit.tile.bottom, - -- awful.layout.suit.tile.top, - -- awful.layout.suit.fair, - -- awful.layout.suit.fair.horizontal, - -- awful.layout.suit.spiral, - -- awful.layout.suit.spiral.dwindle, - awful.layout.suit.max, - -- awful.layout.suit.max.fullscreen, - -- awful.layout.suit.magnifier, - -- awful.layout.suit.floating, -} +local layouts = {} + +if hostname == "drd" then layouts = { awful.layout.suit.tile, + awful.layout.suit.max } +elseif hostname == "phoenix" then layouts = { awful.layout.suit.max } +end -- }}} -- {{{ Wallpaper