From c1dfc818278a9a85765d95b29a75ac31fb21e40c Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Tue, 3 May 2022 14:59:52 +0900 Subject: Configure lab setup --- awesome/.config/awesome/rc.lua | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'awesome/.config/awesome/rc.lua') 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 = " "} -- cgit 1.4.1