configuration merge with laptop and pc

This commit is contained in:
2026-08-15 21:51:35 +02:00
parent b0b2e04b7f
commit 974858253b
32 changed files with 1861 additions and 144 deletions
+21 -2
View File
@@ -9,7 +9,7 @@ hl.monitor({
-- if no profile match at all, the fallback_profile will be applied anyways.
local fallback_profile="laptop"
local profiles = {
home = {
home_docked = {
priority = 10,
monitors = {
"desc:GIGA-BYTE TECHNOLOGY CO. LTD. M34WQ 0x00000B52",
@@ -25,6 +25,25 @@ local profiles = {
workspace_rules = {
},
},
home_pc = {
priority = 20,
monitors = {
"desc:GIGA-BYTE TECHNOLOGY CO. LTD. M34WQ 0x00000B52",
"desc:Dell Inc. DELL U2724D DL7R834",
"desc:Dell Inc. DELL U2414H 292K475V26JL",
},
disable_other_monitors = true,
monitor_config = {
["desc:GIGA-BYTE TECHNOLOGY CO. LTD. M34WQ 0x00000B52"] = {disabled=false, scale=1, position="0x0", mode="3440x1440@120"},
["desc:Dell Inc. DELL U2414H 292K475V26JL"] = {disabled=false, scale=1, position="760x-1080", mode="1920x1080@60"},
["desc:Dell Inc. DELL U2724D DL7R834"] = {disabled=false, scale=1, position="3440x0", mode="2560x1440@120"},
},
workspace_rules = {
{ workspace = "1", monitor = "desc:GIGA-BYTE TECHNOLOGY CO. LTD. M34WQ 0x00000B52", default = true, persistent = true},
{ workspace = "9", monitor = "desc:Dell Inc. DELL U2724D DL7R834", default = true, persistent = true},
{ workspace = "10", monitor = "desc:Dell Inc. DELL U2414H 292K475V26JL", default = true, persistent = true},
}
},
work = {
priority = 10,
monitors = {
@@ -162,7 +181,7 @@ local function apply_monitor_profile()
end
local monitor_profile_timer = nil
local function request_apply_monitor_profile(data)
function request_apply_monitor_profile(data)
debug_notify("requested monitor profile update")
table.insert(apply_monitor_request_queue, data or {})
if monitor_profile_timer == nil or not monitor_profile_timer:is_enabled() then