// ── Window Rules ──────────────────────────────────────────────────────────────

// Launcher / utility floating windows
window-rule {
    match app-id=r"^ulauncher$"
    open-floating true
}

window-rule {
    match app-id=r"^vicinae$"
    open-floating true
}

window-rule {
    match app-id=r"^org\.gnome\.Calculator$"
    open-floating true
    default-column-width { fixed 400; }
}

window-rule {
    match app-id=r"^qalculate-gtk$"
    open-floating true
    default-column-width { fixed 600; }
}

window-rule {
    match app-id=r"^pavucontrol$"
    open-floating true
    default-column-width { fixed 800; }
}

window-rule {
    match app-id=r"^nm-connection-editor$"
    open-floating true
    default-column-width { fixed 800; }
}

window-rule {
    match app-id=r"^blueman-manager$"
    open-floating true
    default-column-width { fixed 700; }
}

// File manager dialogs
window-rule {
    match app-id=r"^thunar$" title=r"^(Copy|Move|Rename|Delete|Progress)"
    open-floating true
}

window-rule {
    match app-id=r"^xfce4-terminal$"
    open-floating true
    default-column-width { fixed 900; }
}

// Global window dimming — all windows at 85% opacity by default
window-rule {
    opacity 0.85
}

// No transparency for browser / media apps
window-rule {
    match app-id=r"^firefox$"
    opacity 1.0
}

window-rule {
    match app-id=r"^zen$"
    opacity 1.0
}

window-rule {
    match app-id=r"^vesktop$"
    opacity 1.0
}
