about summary refs log tree commit diff
path: root/awesome/.config/awesome/rc.lua
diff options
context:
space:
mode:
Diffstat (limited to 'awesome/.config/awesome/rc.lua')
-rw-r--r--awesome/.config/awesome/rc.lua19
1 files changed, 13 insertions, 6 deletions
diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua
index 765c0c6..adf9ee3 100644
--- a/awesome/.config/awesome/rc.lua
+++ b/awesome/.config/awesome/rc.lua
@@ -83,9 +83,9 @@ local modkey = "Mod4"
 awful.layout.layouts = {
   awful.layout.suit.fair,
   --awful.layout.suit.fair.horizontal,
-  awful.layout.suit.tile,
+  --awful.layout.suit.tile,
   --awful.layout.suit.tile.left,
-  --awful.layout.suit.tile.bottom,
+  awful.layout.suit.tile.bottom,
   --awful.layout.suit.tile.top,
   --awful.layout.suit.spiral,
   --awful.layout.suit.spiral.dwindle,
@@ -95,7 +95,7 @@ awful.layout.layouts = {
   --awful.layout.suit.corner.nw,
   --awful.layout.suit.corner.ne,
   --awful.layout.suit.corner.sw,
-  --awful.layout.suit.corner.se
+  --awful.layout.suit.corner.se,
   awful.layout.suit.floating,
 }
 -- }}}
@@ -317,7 +317,9 @@ local function set_wallpaper(s)
   -- Wallpaper
   if beautiful.wallpaper then
     local wallpaper = beautiful.wallpaper
-    -- If wallpaper is a function, call it with the screen
+    if s.geometry.width > 3000 then
+      wallpaper = beautiful.wallpaper_wide
+    end
     if type(wallpaper) == "function" then
       wallpaper = wallpaper(s)
     end
@@ -340,8 +342,13 @@ screen.connect_signal("property::geometry", set_wallpaper)
 awful.screen.connect_for_each_screen(function (s)
   set_wallpaper(s)
   -- Each screen has its own tag table.
-  awful.tag({"1", "2", "3", "4", "5", "6", "7", "8", "9"}, s,
-            awful.layout.layouts[1])
+  if s.geometry.width > 3000 then
+    awful.tag({"1", "2", "3", "4", "5", "6", "7", "8", "9"}, s,
+              awful.layout.suit.tile.bottom)
+  else
+    awful.tag({"1", "2", "3", "4", "5", "6", "7", "8", "9"}, s,
+              awful.layout.suit.fair)
+  end
 
   -- Create a promptbox for each screen
   s.mypromptbox = awful.widget.prompt{prompt = " "}