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/boardary | 1 + awesome/.config/awesome/rc.lua | 19 +++++++++++++------ .../awesome/themes/srcery/background-wide.png | Bin 0 -> 23593 bytes awesome/.config/awesome/themes/srcery/theme.lua | 2 ++ awesome/.config/awesome/vicious | 2 +- 5 files changed, 17 insertions(+), 7 deletions(-) create mode 160000 awesome/.config/awesome/boardary create mode 100644 awesome/.config/awesome/themes/srcery/background-wide.png diff --git a/awesome/.config/awesome/boardary b/awesome/.config/awesome/boardary new file mode 160000 index 0000000..8c5d2ff --- /dev/null +++ b/awesome/.config/awesome/boardary @@ -0,0 +1 @@ +Subproject commit 8c5d2ff0000982c6257468dab7f5ca985d58b649 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 = " "} diff --git a/awesome/.config/awesome/themes/srcery/background-wide.png b/awesome/.config/awesome/themes/srcery/background-wide.png new file mode 100644 index 0000000..a3b0076 Binary files /dev/null and b/awesome/.config/awesome/themes/srcery/background-wide.png differ diff --git a/awesome/.config/awesome/themes/srcery/theme.lua b/awesome/.config/awesome/themes/srcery/theme.lua index 2161fb4..0773480 100644 --- a/awesome/.config/awesome/themes/srcery/theme.lua +++ b/awesome/.config/awesome/themes/srcery/theme.lua @@ -119,6 +119,7 @@ theme.titlebar_maximized_button_normal_active = titlebar'normal' theme.titlebar_maximized_button_focus_active = titlebar'maximized_active' theme.wallpaper = abspath'background-fullhd.png' +theme.wallpaper_wide = abspath'background-wide.png' -- You can use your own layout icons like this: local function layout(icon) @@ -140,6 +141,7 @@ theme.layout_cornernw = layout'cornernw' theme.layout_cornerne = layout'cornerne' theme.layout_cornersw = layout'cornersw' theme.layout_cornerse = layout'cornerse' +theme.master_count = 3 theme.awesome_icon = abspath'awesome.png' diff --git a/awesome/.config/awesome/vicious b/awesome/.config/awesome/vicious index b20f68b..81f8a80 160000 --- a/awesome/.config/awesome/vicious +++ b/awesome/.config/awesome/vicious @@ -1 +1 @@ -Subproject commit b20f68bdb742caa5775b45c7f3f3624da0c51c7b +Subproject commit 81f8a8077437d32fd31de87493be5ce346d7b6cc -- cgit 1.4.1