summaryrefslogtreecommitdiff
path: root/_LEGACY/window-rules.conf
blob: f0af11507a686b696f546dd160b598b44756ed3c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# 窗口规则配置
# 更多信息参见 https://wiki.hypr.land/Configuring/Window-Rules/

# 浮动窗口特殊边框设置
windowrule = match:floating:true, bordersize 3
windowrule = match:floating:true, rounding 8

# 为所有浮动窗口设置统一的边框颜色
# windowrule = match:floating:true, bordercolor rgba(FF6B9CFF)
# windowrule = match:floating:false, bordercolor rgba(FF6B9C64)

# "智能间隙" / "仅有一个窗口时无间隙"
# workspace = w[tv1], gapsout:0, gapsin:0
# workspace = f[1], gapsout:0, gapsin:0
# windowrule = bordersize 0, floating:0, onworkspace:w[tv1]
# windowrule = rounding 0, floating:0, onworkspace:w[tv1]
# windowrule = bordersize 0, floating:0, onworkspace:f[1]
# windowrule = rounding 0, floating:0, onworkspace:f[1]

# Flameshot 截图工具浮动窗口
# windowrule = match:class ^(flameshot)$, float
# windowrule = match:class ^(flameshot)$, pin
# windowrule = match:class ^(flameshot)$, noborder
# windowrule = match:class ^(flameshot)$, nofocus
# windowrule = match:class ^(flameshot)$, center

# Rofi 菜单透明度
# windowrule = match:title ^(rofi)$, opacity 0.6

# Wofi 菜单透明度
windowrule = match:class ^(wofi)$, opacity 0.9 0.8
windowrule = match:class ^(wofi)$, dimaround
windowrule = match:class ^(wofi)$, animation popin
windowrule = match:class ^(wofi)$, rounding 10

# 忽略应用程序的最大化请求
windowrule = match:class .*, suppressevent maximize

# 修复 XWayland 的一些拖动问题
windowrule = match:class ^$ && match:title ^$ && match:xwayland true && match:floating true && match:fullscreen false && match:pinned false, nofocus

# 示例窗口规则
# windowrule = match:class ^(kitty)$ && match:title ^(kitty)$, float