moved user_config into config
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
hl.config({
|
||||
input={
|
||||
-- keyboard
|
||||
kb_model = "",
|
||||
kb_layout = "de",
|
||||
kb_variant = "",
|
||||
kb_options = "",
|
||||
kb_rules = "",
|
||||
kb_file = "",
|
||||
numlock_by_default = true,
|
||||
-- mouse
|
||||
sensitivity = 0,
|
||||
left_handed = false,
|
||||
natural_scroll = false,
|
||||
follow_mouse = 1,
|
||||
touchpad = {
|
||||
disable_while_typing = false,
|
||||
natural_scroll = true,
|
||||
scroll_factor = 0.15,
|
||||
middle_button_emulation = true,
|
||||
clickfinger_behavior = true,
|
||||
drag_lock = 1,
|
||||
tap_and_drag = true,
|
||||
drag_3fg = 2,
|
||||
},
|
||||
}
|
||||
})
|
||||
if HOSTNAME == "honney-main" then
|
||||
hl.config({
|
||||
input={
|
||||
kb_layout = "us",
|
||||
}
|
||||
})
|
||||
end
|
||||
@@ -0,0 +1,101 @@
|
||||
if HOSTNAME == "honney-main" then
|
||||
hl.monitor({
|
||||
output = "desc:BNQ BenQ EX2710U Y8P00876019",
|
||||
mode = "3840x2160@144",
|
||||
position = "0x0",
|
||||
scale = 1,
|
||||
transform = 0,
|
||||
bitdepth = 10,
|
||||
cm = "srgb",
|
||||
sdr_eotf = "default",
|
||||
sdrbrightness = 1.0,
|
||||
sdrsaturation = 1.0,
|
||||
vrr = 0,
|
||||
supports_wide_color = 1,
|
||||
supports_hdr = 1,
|
||||
sdr_min_luminance = 0.2,
|
||||
sdr_max_luminance = 600,
|
||||
})
|
||||
hl.monitor({
|
||||
output = "desc:ASUSTek COMPUTER INC PA279CRV S5LMSB007609",
|
||||
mode = "3840x2160@60",
|
||||
position = "-3840x0",
|
||||
scale = 1,
|
||||
transform = 0,
|
||||
bitdepth = 10,
|
||||
cm = "srgb",
|
||||
sdr_eotf = "default",
|
||||
sdrbrightness = 1.0,
|
||||
sdrsaturation = 1.0,
|
||||
vrr = 0,
|
||||
supports_wide_color = 1,
|
||||
supports_hdr = 1,
|
||||
sdr_min_luminance = 0.2,
|
||||
sdr_max_luminance = 400,
|
||||
})
|
||||
hl.monitor({
|
||||
output = "desc:LG Electronics LG ULTRAFINE 503NTKF3L437",
|
||||
mode = "3840x2160@60",
|
||||
position = "0x-2160",
|
||||
scale = 1,
|
||||
transform = 2,
|
||||
bitdepth = 10,
|
||||
cm = "srgb",
|
||||
sdr_eotf = "default",
|
||||
sdrbrightness = 1.0,
|
||||
sdrsaturation = 1.0,
|
||||
vrr = 0,
|
||||
supports_wide_color = 1,
|
||||
supports_hdr = 1,
|
||||
sdr_min_luminance = 0.2,
|
||||
sdr_max_luminance = 400,
|
||||
})
|
||||
hl.monitor({
|
||||
output = "desc:LG Electronics LG ULTRAGEAR 107MAKR2RE65",
|
||||
mode = "1920x1080@144",
|
||||
position = "-1920x-1080",
|
||||
scale = 1,
|
||||
transform = 2,
|
||||
bitdepth = 10,
|
||||
})
|
||||
hl.monitor({
|
||||
output = "desc:Dell Inc. DELL P2419H D4CN3Q2",
|
||||
mode = "1920x1080@60",
|
||||
position = "-1920x-2160",
|
||||
scale = 1,
|
||||
transform = 0,
|
||||
})
|
||||
elseif HOSTNAME == "hp-laptop" then
|
||||
hl.monitor({
|
||||
output = "desc:BOE 0x08A8",
|
||||
mode = "1920x1080@60",
|
||||
position = "0x0",
|
||||
scale = 1,
|
||||
transform = 0,
|
||||
})
|
||||
hl.monitor({
|
||||
output = "desc:AOC 24B3HA2 AVKS29A004767",
|
||||
mode = "1920x1080@120",
|
||||
position = "-1920x0",
|
||||
scale = 1,
|
||||
transform = 0,
|
||||
})
|
||||
elseif HOSTNAME == "arch" then
|
||||
hl.monitor({
|
||||
output = "desc:AOC CU34G2XP 1Q1R4HA002436",
|
||||
mode = "3440x1440@180",
|
||||
position = "0x0",
|
||||
scale = 1,
|
||||
transform = 0,
|
||||
})
|
||||
hl.monitor({
|
||||
output = "desc:AOC 24G1WG4 0x0001A57A",
|
||||
mode = "1920x1080@60",
|
||||
position = "-1920x0",
|
||||
scale = 1,
|
||||
transform = 0,
|
||||
})
|
||||
end
|
||||
|
||||
-- mirror string Output name to mirror
|
||||
-- icc string Absolute path to an ICC profile
|
||||
@@ -0,0 +1,136 @@
|
||||
-- Recommended command for getting class/..:
|
||||
-- sleep 2 && hyprctl activewindow
|
||||
|
||||
if HOSTNAME == "honney-main" then
|
||||
--# Window rules on Monitor 3
|
||||
hl.window_rule({
|
||||
name = "Librewolf",
|
||||
match = {
|
||||
class = ".*librewolf.*"
|
||||
},
|
||||
workspace = "30 silent"
|
||||
})
|
||||
hl.window_rule({
|
||||
name = "Mozilla Thunderbird",
|
||||
match = {
|
||||
class = ".*Thunderbird.*"
|
||||
},
|
||||
workspace = "31 silent"
|
||||
})
|
||||
--# Window rules on Monitor 4
|
||||
hl.window_rule({
|
||||
name = "Discord",
|
||||
match = {
|
||||
class = ".*discord.*"
|
||||
},
|
||||
workspace = "4 silent"
|
||||
})
|
||||
hl.window_rule({
|
||||
name = "Signal",
|
||||
match = {
|
||||
class = ".*signal.*"
|
||||
},
|
||||
workspace = "4"
|
||||
})
|
||||
hl.window_rule({
|
||||
name = "Nextcloud",
|
||||
match = {
|
||||
class = ".*nextcloud.*"
|
||||
},
|
||||
workspace = "40"
|
||||
})
|
||||
elseif HOSTNAME == "hp-laptop" then
|
||||
hl.window_rule({
|
||||
name = "Discord",
|
||||
match = {
|
||||
class = ".*discord.*"
|
||||
},
|
||||
workspace = "4 silent"
|
||||
})
|
||||
hl.window_rule({
|
||||
name = "Signal",
|
||||
match = {
|
||||
class = ".*signal.*"
|
||||
},
|
||||
workspace = "4"
|
||||
})
|
||||
hl.window_rule({
|
||||
name = "Nextcloud",
|
||||
match = {
|
||||
class = ".*nextcloud.*"
|
||||
},
|
||||
workspace = "40"
|
||||
})
|
||||
end
|
||||
|
||||
|
||||
-- Videos
|
||||
hl.window_rule({
|
||||
name = "Youtube",
|
||||
match = {
|
||||
title = ".*YouTube — .*"
|
||||
},
|
||||
no_dim = true,
|
||||
content = "video"
|
||||
})
|
||||
hl.window_rule({
|
||||
name = "Crunchyroll",
|
||||
match = {
|
||||
title = ".*Crunchyroll — .*"
|
||||
},
|
||||
no_dim = true,
|
||||
content = "video"
|
||||
})
|
||||
|
||||
hl.window_rule({
|
||||
name = "Fladder",
|
||||
match = {
|
||||
class = ".*fladder.*"
|
||||
},
|
||||
no_dim = true,
|
||||
content = "video"
|
||||
})
|
||||
|
||||
-- Images
|
||||
hl.window_rule({
|
||||
name = "Viewnior",
|
||||
match = {
|
||||
class = "viewnior"
|
||||
},
|
||||
no_dim = true,
|
||||
content = "image"
|
||||
})
|
||||
hl.window_rule({
|
||||
name = "Gimp",
|
||||
match = {
|
||||
class = "gimp"
|
||||
},
|
||||
no_dim = true,
|
||||
content = "image"
|
||||
})
|
||||
|
||||
-- Games
|
||||
hl.window_rule({
|
||||
name = "Steam Games",
|
||||
match = {
|
||||
class = "steam_app.*",
|
||||
},
|
||||
no_dim = true,
|
||||
content = "game"
|
||||
})
|
||||
hl.window_rule({
|
||||
name = "Eden",
|
||||
match = {
|
||||
class = ".*eden.*",
|
||||
},
|
||||
no_dim = true,
|
||||
content = "game"
|
||||
})
|
||||
hl.window_rule({
|
||||
name = "Minecraft",
|
||||
match = {
|
||||
class = ".*Minecraft.*",
|
||||
},
|
||||
no_dim = true,
|
||||
content = "game"
|
||||
})
|
||||
@@ -0,0 +1,165 @@
|
||||
if HOSTNAME == "honney-main" then
|
||||
--# Workspaces on Monitor 1
|
||||
hl.workspace_rule({
|
||||
workspace = "1",
|
||||
monitor = "desc:BNQ BenQ EX2710U Y8P00876019",
|
||||
default = true,
|
||||
layout = "scrolling",
|
||||
persistent = true
|
||||
})
|
||||
hl.workspace_rule({
|
||||
workspace = "10",
|
||||
monitor = "desc:BNQ BenQ EX2710U Y8P00876019",
|
||||
default = false,
|
||||
persistent = true
|
||||
})
|
||||
hl.workspace_rule({
|
||||
workspace = "11",
|
||||
monitor = "desc:BNQ BenQ EX2710U Y8P00876019",
|
||||
default = false,
|
||||
persistent = true
|
||||
})
|
||||
hl.workspace_rule({
|
||||
workspace = "12",
|
||||
monitor = "desc:BNQ BenQ EX2710U Y8P00876019",
|
||||
default = false,
|
||||
persistent = true
|
||||
})
|
||||
--# Workspaces on Monitor 2
|
||||
hl.workspace_rule({
|
||||
workspace = "2",
|
||||
monitor = "desc:ASUSTek COMPUTER INC PA279CRV S5LMSB007609",
|
||||
default = true,
|
||||
layout = "scrolling",
|
||||
persistent = true
|
||||
})
|
||||
hl.workspace_rule({
|
||||
workspace = "20",
|
||||
monitor = "desc:ASUSTek COMPUTER INC PA279CRV S5LMSB007609",
|
||||
default = false,
|
||||
persistent = true
|
||||
})
|
||||
hl.workspace_rule({
|
||||
workspace = "21",
|
||||
monitor = "desc:ASUSTek COMPUTER INC PA279CRV S5LMSB007609",
|
||||
default = false,
|
||||
persistent = true
|
||||
})
|
||||
hl.workspace_rule({
|
||||
workspace = "22",
|
||||
monitor = "desc:ASUSTek COMPUTER INC PA279CRV S5LMSB007609",
|
||||
default = false,
|
||||
persistent = true
|
||||
})
|
||||
--# Workspaces on Monitor 3
|
||||
hl.workspace_rule({
|
||||
workspace = "3",
|
||||
monitor = "desc:LG Electronics LG ULTRAFINE 503NTKF3L437",
|
||||
default = true,
|
||||
persistent = true
|
||||
})
|
||||
hl.workspace_rule({
|
||||
workspace = "30",
|
||||
monitor = "desc:LG Electronics LG ULTRAFINE 503NTKF3L437",
|
||||
default = false,
|
||||
persistent = true
|
||||
})
|
||||
hl.workspace_rule({
|
||||
workspace = "31",
|
||||
monitor = "desc:LG Electronics LG ULTRAFINE 503NTKF3L437",
|
||||
default = false,
|
||||
persistent = true
|
||||
})
|
||||
hl.workspace_rule({
|
||||
workspace = "32",
|
||||
monitor = "desc:LG Electronics LG ULTRAFINE 503NTKF3L437",
|
||||
default = false,
|
||||
persistent = true
|
||||
})
|
||||
--# Workspaces on Monitor 4
|
||||
hl.workspace_rule({
|
||||
workspace = "4",
|
||||
monitor = "desc:LG Electronics LG ULTRAGEAR 107MAKR2RE65",
|
||||
default = true,
|
||||
persistent = true
|
||||
})
|
||||
hl.workspace_rule({
|
||||
workspace = "40",
|
||||
monitor = "desc:LG Electronics LG ULTRAGEAR 107MAKR2RE65",
|
||||
default = false,
|
||||
persistent = true
|
||||
})
|
||||
hl.workspace_rule({
|
||||
workspace = "41",
|
||||
monitor = "desc:LG Electronics LG ULTRAGEAR 107MAKR2RE65",
|
||||
default = false,
|
||||
persistent = true
|
||||
})
|
||||
hl.workspace_rule({
|
||||
workspace = "42",
|
||||
monitor = "desc:LG Electronics LG ULTRAGEAR 107MAKR2RE65",
|
||||
default = false,
|
||||
persistent = true
|
||||
})
|
||||
elseif HOSTNAME == "arch" then
|
||||
hl.workspace_rule({
|
||||
workspace = "1",
|
||||
monitor = "desc:AOC CU34G2XP 1Q1R4HA002436",
|
||||
persistent = true
|
||||
})
|
||||
hl.workspace_rule({
|
||||
workspace = "2",
|
||||
monitor = "desc:AOC CU34G2XP 1Q1R4HA002436",
|
||||
persistent = true
|
||||
})
|
||||
hl.workspace_rule({
|
||||
workspace = "3",
|
||||
monitor = "desc:AOC CU34G2XP 1Q1R4HA002436",
|
||||
persistent = true
|
||||
})
|
||||
hl.workspace_rule({
|
||||
workspace = "4",
|
||||
monitor = "desc:AOC CU34G2XP 1Q1R4HA002436",
|
||||
persistent = true
|
||||
})
|
||||
|
||||
hl.workspace_rule({
|
||||
workspace = "5",
|
||||
monitor = "desc:AOC 24G1WG4 0x0001A57A",
|
||||
persistent = true
|
||||
})
|
||||
hl.workspace_rule({
|
||||
workspace = "6",
|
||||
monitor = "desc:AOC 24G1WG4 0x0001A57A",
|
||||
persistent = true
|
||||
})
|
||||
hl.workspace_rule({
|
||||
workspace = "7",
|
||||
monitor = "desc:AOC 24G1WG4 0x0001A57A",
|
||||
persistent = true
|
||||
})
|
||||
hl.workspace_rule({
|
||||
workspace = "8",
|
||||
monitor = "desc:AOC 24G1WG4 0x0001A57A",
|
||||
persistent = true
|
||||
})
|
||||
|
||||
|
||||
else
|
||||
hl.workspace_rule({
|
||||
workspace = "1",
|
||||
persistent = true
|
||||
})
|
||||
hl.workspace_rule({
|
||||
workspace = "2",
|
||||
persistent = true
|
||||
})
|
||||
hl.workspace_rule({
|
||||
workspace = "3",
|
||||
persistent = true
|
||||
})
|
||||
hl.workspace_rule({
|
||||
workspace = "4",
|
||||
persistent = true
|
||||
})
|
||||
end
|
||||
Reference in New Issue
Block a user