You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

143 lines
3.1 KiB

---------------
-- Layer Rule
---------------
hl.layer_rule {
name = 'layer_waybar',
match = { namespace = '(?:launcher|waybar)' },
-- notifications
blur = true,
blur_popups = true,
}
-------------------
-- Workspace Rule
-------------------
hl.workspace_rule { workspace = 'w[tv1]s[false]', gaps_in = 0, gaps_out = 0, no_border = true, no_shadow = true, no_rounding = true }
hl.workspace_rule { workspace = 'f[1]s[false]', gaps_in = 0, gaps_out = 0, no_border = true, no_shadow = true, no_rounding = true }
for i = 1, 10 do
hl.workspace_rule { workspace = i, monitor = 'DP-1' }
end
hl.workspace_rule {
workspace = 'name:dp2',
monitor = 'DP-2',
default = true,
layout = 'master',
layout_opts = { orientation = 'top' },
}
hl.workspace_rule {
workspace = 'name:dp4',
monitor = 'DP-4',
default = true,
}
hl.workspace_rule {
workspace = 'n[s:dp]',
--layout = 'monocle',
gaps_in = 0, gaps_out = 0, float_gaps = 0, border_size = 0,
no_border = true, no_shadow = true, no_rounding = true,
decorate = false, persistent = false,
}
hl.window_rule { match = { workspace = 'name:dp4' }, scrolling_width = 1.0, }
hl.window_rule { match = { workspace = 'n[s:dp]' }, no_blur = true, }
hl.workspace_rule {
workspace = 'name:dropdown',
monitor = 'DP-1',
no_border = true,
animation = 'slidefade 60%',
}
----------------
-- Window Rule
----------------
hl.window_rule {
name = 'web_browser',
match = { class = 'helium' },
workspace = 3,
}
hl.window_rule {
name = 'games',
match = { initial_class = '(?:yuanshen|starrail|zenlesszonezero)\\.exe|(?:steam|gamescope)|steam_app_.*' },
workspace = 4,
content = 'game',
immediate = true,
float = true,
--center = true,
}
--hl.window_rule {
-- name = 'game_hsr',
-- match = { initial_class = 'gamescope', initial_title = '崩坏:星穹铁道' },
--
-- workspace = 'name:dp2',
--
-- content = 'game',
-- immediate = true,
--}
hl.window_rule {
name = 'videos',
match = { class = 'com\\.example\\.piliplus' },
workspace = 'name:dp4',
content = 'video',
}
hl.window_rule {
name = 'photos',
match = { class = 'swayimg' },
content = 'photo',
float = true,
center = true,
}
hl.window_rule {
name = 'just_float',
match = { class = '(?:wechat|baidunetdisk|qqmusic|com\\.tencent\\.wechatappex)' },
float = true,
center = true,
}
hl.window_rule {
name = 'just_float_browser',
match = { class = 'app.zen_browser.zen', title = 'https://translate.google.com' },
float = true,
center = true,
}
hl.window_rule {
name = 'kitten',
match = { class = 'kitty', title = 'kitten' },
float = true,
center = true,
}
hl.window_rule {
name = 'zathura',
match = { class = 'org\\.pwmt\\.zathura' },
maximize = true,
}
hl.window_rule {
name = 'godot_mainws',
match = { class = 'org\\.godotengine\\.ProjectManager'},
workspace = 2,
}
hl.window_rule {
name = 'godot_debug',
match = { class = 'org\\.godotengine\\.Editor', title = '.*\\(DEBUG\\)'},
workspace = 'name:dp4',
float = true,
}