diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2022-05-03 14:59:52 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2022-05-03 14:59:52 +0900 |
commit | c1dfc818278a9a85765d95b29a75ac31fb21e40c (patch) | |
tree | 5e366bb82c373a9da4eb5bb982ed7fefeefe7396 /awesome/.config/awesome/rc.lua | |
parent | 959e1ef417451b878a56cc46fffb53bc7ded1a58 (diff) | |
download | dotfiles-c1dfc818278a9a85765d95b29a75ac31fb21e40c.tar.gz |
Configure lab setup
Diffstat (limited to 'awesome/.config/awesome/rc.lua')
-rw-r--r-- | awesome/.config/awesome/rc.lua | 19 |
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 = " "} |