From 5de43bb3740eef3f040da93eea1fe08c9bc26263 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Wed, 11 May 2022 10:40:49 +0900 Subject: Update lab config --- awesome/.config/awesome/rc.lua | 35 ++++++++++++++++++++----- awesome/.config/awesome/themes/srcery/theme.lua | 1 - awesome/.config/awesome/vicious | 2 +- 3 files changed, 29 insertions(+), 9 deletions(-) (limited to 'awesome/.config') diff --git a/awesome/.config/awesome/rc.lua b/awesome/.config/awesome/rc.lua index adf9ee3..44a017e 100644 --- a/awesome/.config/awesome/rc.lua +++ b/awesome/.config/awesome/rc.lua @@ -317,7 +317,7 @@ local function set_wallpaper(s) -- Wallpaper if beautiful.wallpaper then local wallpaper = beautiful.wallpaper - if s.geometry.width > 3000 then + if s.geometry.width > 2880 then wallpaper = beautiful.wallpaper_wide end if type(wallpaper) == "function" then @@ -342,12 +342,8 @@ 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. - 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) + awful.tag({"1", "2", "3", "4", "5", "6", "7", "8", "9"}, + s, awful.layout.suit.fair) end -- Create a promptbox for each screen @@ -483,6 +479,31 @@ local globalkeys = awful.util.table.join( awful.key({modkey}, "[", function () awful.screen.focus_relative(1) end, {description = "focus the previous screen", group = "screen"}), + awful.key({modkey}, "0", + function () + for s in screen do + if s.geometry.width > 2880 then + local geo = s.geometry + s.phy_width = geo.width + s:fake_resize(geo.x, geo.y, 1920, geo.height) + s.fake = screen.fake_add(geo.x + 1920, geo.y, + s.phy_width - 1920, geo.height) + end + end + end, + {description = "add fake screens", group = "screen"}), + awful.key({modkey, "Shift"}, "0", + function () + for s in screen do + if s.fake ~= nil then + local geo = s.geometry + s:fake_resize(geo.x, geo.y, s.phy_width, geo.height) + s.fake:fake_remove() + s.fake = nil + end + end + end, + {description = "add fake screens", group = "screen"}), awful.key({modkey}, "u", awful.client.urgent.jumpto, {description = "jump to urgent client", group = "client"}), awful.key({modkey}, "Tab", diff --git a/awesome/.config/awesome/themes/srcery/theme.lua b/awesome/.config/awesome/themes/srcery/theme.lua index 0773480..3a46f6d 100644 --- a/awesome/.config/awesome/themes/srcery/theme.lua +++ b/awesome/.config/awesome/themes/srcery/theme.lua @@ -141,7 +141,6 @@ 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 81f8a80..afb6fff 160000 --- a/awesome/.config/awesome/vicious +++ b/awesome/.config/awesome/vicious @@ -1 +1 @@ -Subproject commit 81f8a8077437d32fd31de87493be5ce346d7b6cc +Subproject commit afb6fffafc629e3c0b57d444be6a8618db8698fc -- cgit 1.4.1