Skip to content

Instantly share code, notes, and snippets.

@reee
Created February 7, 2026 04:48
Show Gist options
  • Select an option

  • Save reee/7e5e4b92fcb1dd7c286e5906351b5e72 to your computer and use it in GitHub Desktop.

Select an option

Save reee/7e5e4b92fcb1dd7c286e5906351b5e72 to your computer and use it in GitHub Desktop.
修复WPS在hyprland下主窗口平铺模式下文件操作等对话框显示不正确的问题
# WPS 文件操作等 -> floating|
# 关键在当前版本wps复制粘贴等对话框的title与主窗口class是一致的,因此通过title进行匹配
windowrule {
name = wps-float
match:class = ^(wpsoffice|wps|et|wpp|pdf)$
match:title = ^(另存为.*|打开.*|查找.*|替换.*|定位.*|wpsoffice|wps|et|wpp|pdf)$
float = on
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment