configuration merge with laptop and pc
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user