niri: split configs often being edited.
- unable to split them completely into different parts: some visual effect may not functional.
This commit is contained in:
63
.config/niri/config.window.kdl
Normal file
63
.config/niri/config.window.kdl
Normal file
@@ -0,0 +1,63 @@
|
||||
window-rule {
|
||||
geometry-corner-radius 6
|
||||
clip-to-geometry true
|
||||
}
|
||||
|
||||
window-rule {
|
||||
match app-id="QQ"
|
||||
match app-id="Electron" title="yacd" // Yet Another Clash Daemon (webui)
|
||||
match app-id="wechat"
|
||||
match app-id="org.telegram.desktop"
|
||||
match app-id="nwjs" // mainly for rpgmaker games.
|
||||
// open-on-output "eDP-1"
|
||||
block-out-from "screencast"
|
||||
}
|
||||
|
||||
window-rule {
|
||||
match app-id="com.obsproject.Studio"
|
||||
match app-id="Electron" title="Test" // frg2089.BiliLive.Observer
|
||||
match app-id="Electron" title="Blivechat-Openlive" // blivechat
|
||||
default-column-display "tabbed"
|
||||
open-on-output "eDP-1"
|
||||
}
|
||||
|
||||
window-rule {
|
||||
match title="^(图片查看器|.*记录)$" app-id="QQ"
|
||||
match app-id="pavucontrol-qt"
|
||||
|
||||
default-column-width { proportion 0.6; }
|
||||
default-window-height { proportion 0.85; }
|
||||
open-floating true
|
||||
}
|
||||
|
||||
window-rule {
|
||||
match app-id="nwjs"
|
||||
|
||||
default-column-width { proportion 0.85; }
|
||||
default-window-height { proportion 0.9; }
|
||||
open-floating true
|
||||
}
|
||||
|
||||
window-rule {
|
||||
match app-id=r#"^org\.keepassxc\.KeePassXC$"#
|
||||
match app-id=r#"^org\.gnome\.World\.Secrets$"#
|
||||
match app-id=r#"^org\.kde\.ksecretd$"#
|
||||
open-floating true
|
||||
}
|
||||
|
||||
window-rule {
|
||||
// match title=r#"Code - OSS$"#
|
||||
match title=r#"Visual Studio Code$"# app-id=r#"^code"#
|
||||
match app-id="krita"
|
||||
|
||||
open-maximized true
|
||||
}
|
||||
|
||||
window-rule {
|
||||
// match app-id=r#"firefox$"# title="^Picture-in-Picture$"
|
||||
match app-id="steam" title="Friends List"
|
||||
open-floating true
|
||||
default-floating-position x=8 y=8 relative-to="bottom-right"
|
||||
open-focused false
|
||||
open-on-output "eDP-1"
|
||||
}
|
||||
Reference in New Issue
Block a user