dotfiles/home/by-host/endurance/hyprland/window-rules.nix
Christopher Mühl 7af406f315
feat: add Hyprland as an additional compositor alongside Niri
Enables programs.hyprland at the system level, adds xdg-desktop-portal-hyprland
with per-compositor portal routing, and wires up a home-manager config for
endurance mirroring the Niri layout (same keybinds, monitors, window rules).
Niri remains the default SDDM session.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-19 10:53:30 +01:00

28 lines
860 B
Nix

{...}: {
wayland.windowManager.hyprland.settings = {
windowrulev2 = [
# Privacy: block from screen capture
"noscreenshare, class:^(1password)$"
"noscreenshare, class:^(thunderbird)$"
"noscreenshare, title:^(ld\\.toph\\.so)$"
# Floating windows
"float, class:^(org\\.zealdocs\\.zeal)$"
"center 1, class:^(org\\.zealdocs\\.zeal)$"
"size 50% 80%, class:^(org\\.zealdocs\\.zeal)$"
"minsize 1400 500, class:^(org\\.zealdocs\\.zeal)$"
"float, class:^(speedcrunch)$"
"center 1, class:^(speedcrunch)$"
"size 30% 60%, class:^(speedcrunch)$"
"float, title:^(DevTools)$"
# Kitty: slight transparency
"opacity 0.97 0.97, class:^(kitty)$"
# JetBrains: suppress phantom windows
"nofocus, class:^jetbrains-(?!toolbox), floating:1, title:^win\\d+$"
];
};
}