fix: fix monitor config
This commit is contained in:
+15
-2
@@ -1,9 +1,22 @@
|
||||
local settings = require("lua.lib.settings")
|
||||
local utils = require("lua.lib.utils")
|
||||
|
||||
local M = {}
|
||||
|
||||
M.monitors = {}
|
||||
|
||||
if settings["host"] == "laptop" then
|
||||
hl.monitor({
|
||||
M.monitors = table.insert({ {
|
||||
output = "eDP-1",
|
||||
mode = "highres",
|
||||
scale = "auto",
|
||||
})
|
||||
} })
|
||||
end
|
||||
|
||||
function M:load()
|
||||
for _, monitor in ipairs(self.monitors) do
|
||||
hl.monitor(monitor)
|
||||
end
|
||||
end
|
||||
|
||||
return utils.extend_config(M, "lua.user.conf.monitor")
|
||||
|
||||
Reference in New Issue
Block a user