diff --git a/configs/niri/dms/windowrules.kdl b/configs/niri/dms/windowrules.kdl index 53f5f55..9da4947 100644 --- a/configs/niri/dms/windowrules.kdl +++ b/configs/niri/dms/windowrules.kdl @@ -1,110 +1,85 @@ -// ========================= -// DMS Window Rules -// ========================= +// DMS Window Rules - Managed by DankMaterialShell +// Do not edit manually - changes may be overwritten +// @id=dms_rule_0 @name= window-rule { - match app-id=r#"^Slack$"# - match app-id=r#"^signal$"# + match app-id="^signal$" open-focused true } -// Open the Firefox picture-in-picture player as floating by default. +// @id=dms_rule_1 @name= window-rule { match app-id="org.pipewire.Helvum" - open-focused true open-floating true - default-floating-position x=0 y=25 relative-to="top" - default-window-height { proportion 0.8; } + open-focused true default-column-width { proportion 0.75; } + default-window-height { proportion 0.8; } } +// @id=dms_rule_2 @name=Slack Huddle Rules window-rule { - match app-id=r#"firefox$"# title="^Picture-in-Picture$" - match app-id="org.pulseaudio.pavucontrol" - match app-id="Rofi" - match app-id="nm-connection-editor" - match app-id=".blueman-manager-wrapped" - match app-id=r#"^org.gnome.Calendar$"# - match app-id=r#"^gcr-prompter$"# - match app-id=r#"^xdg-desktop-portal-gnome$"# - match app-id=r#"^nm-applet$"# - match app-id=r#"^chrome-.*"# - match app-id="waypaper" - match title="$Huddle:.*" app-id="Slack" - open-focused true + match app-id="Slack" title="$Huddle:.*" open-floating true - default-floating-position x=0 y=25 relative-to="top" - default-window-height { proportion 0.5; } + open-focused true default-column-width { proportion 0.25; } + default-window-height { proportion 0.5; } } +// @id=dms_rule_3 @name= window-rule { match app-id="remote-viewer" - open-fullscreen true open-maximized true + open-fullscreen true open-focused true } +// @id=dms_rule_4 @name= window-rule { match is-active=false opacity 0.85 } +// @id=dms_rule_5 @name= window-rule { match is-urgent=true open-focused true } +// @id=dms_rule_6 @name= window-rule { match app-id="satty" - open-focused true open-floating true + open-focused true + default-column-width { proportion 0.75; } + default-window-height { proportion 0.75; } min-width 800 min-height 400 - default-floating-position x=-200 y=200 relative-to="top" - default-window-height { proportion 0.75; } - default-column-width { proportion 0.75; } } +// @id=dms_rule_7 @name= window-rule { - match app-id="code" match app-id="org.shotcut.Shotcut" - exclude app-id=r#"^code$"# title=r#"^Visual Studio Code$"# - open-fullscreen false - open-floating false + opacity 0.95 open-maximized true open-focused true - opacity 0.95 } -// Security-sensitive apps - block from screen capture +// @id=dms_rule_8 @name= window-rule { match app-id="Sparrow" block-out-from "screen-capture" - shadow { - on - } - focus-ring { - width 4 - active-color "#f00f" - inactive-color "#f00f" - } + focus-ring { active-color "#f00f"; } } +// @id=dms_rule_9 @name= window-rule { - match app-id="Bitwarden" is-focused=false - match app-id="Sparrow" is-focused=false - match title="Bitwarden" is-focused=false + match app-id="Sparrow" title="Bitwarden" is-focused=false opacity 0.45 } +// @id=dms_rule_10 @name= window-rule { - match app-id=r#"^com.slack.Slack$"# + match app-id="^com.slack.Slack$" clip-to-geometry true - border { - on - width 1 - active-color "#0f0f" - inactive-color "#0f0a" - } + border { active-color "#0f0f"; } }