添加窗口规则支持

This commit is contained in:
2026-02-04 16:47:35 +08:00
parent 0e07ba135b
commit 8337ab9519
8 changed files with 116 additions and 20 deletions

View File

@@ -104,3 +104,11 @@ static const char *const autostart_list[] = {
"fcitx5 -d",
nullptr,
};
static const rule_t rules[] = {
{.role = "dialog", .tag_index = -1, .floating = true},
{.class = "firefox", .tag_index = 1, .maximize = true},
{.class = "Google-chrome", .tag_index = 1, .maximize = true},
{.class = "mpv", .tag_index = 3, .switch_to_tag = true, .fullscreen = true},
{.class = "Emacs", .tag_index = 10, .switch_to_tag = true, .maximize = true},
};