config/modules/rice/hyprland/rules.nix

48 lines
1.4 KiB
Nix
Raw Normal View History

2024-02-29 22:20:26 -05:00
{...}: {
wayland.windowManager.hyprland.settings = {
layerrule = [
"blur, ^(gtk-layer-shell)$"
"blur, ^(launcher)$"
"ignorezero, ^(gtk-layer-shell)$"
"ignorezero, ^(launcher)$"
"blur, notifications"
"ignorezero, notifications"
"blur, bar"
"ignorezero, bar"
"ignorezero, ^(gtk-layer-shell|anyrun)$"
"blur, ^(gtk-layer-shell|anyrun)$"
"noanim, launcher"
"noanim, bar"
];
windowrulev2 = [
# only allow shadows for floating windows
"noshadow, floating:0"
"tile, title:Spotify"
"idleinhibit focus, class:^(mpv)$"
"float, title:^(Picture-in-Picture)$"
"pin, title:^(Picture-in-Picture)$"
"float,class:udiskie"
# "workspace special silent,class:^(pavucontrol)$"
2024-02-29 22:20:26 -05:00
"float, class:^(imv)$"
# throw sharing indicators away
"workspace special silent, title:^(Firefox Sharing Indicator)$"
"workspace special silent, title:^(.*is sharing (your screen|a window)\.)$"
"workspace 2, class:^(thunderbird)$"
2024-02-29 22:20:26 -05:00
"workspace 4, title:^(.*(Disc|WebC)ord.*)$"
"workspace 2, class:^(firefox)$"
"opacity 0.0 override,class:^(xwaylandvideobridge)$"
"noanim,class:^(xwaylandvideobridge)$"
"noinitialfocus,class:^(xwaylandvideobridge)$"
"maxsize 1 1,class:^(xwaylandvideobridge)$"
"noblur,class:^(xwaylandvideobridge)$"
2024-02-29 22:20:26 -05:00
];
};
}