diff --git a/home/christoph/default.nix b/home/christoph/default.nix index f333de11..371497c9 100644 --- a/home/christoph/default.nix +++ b/home/christoph/default.nix @@ -99,6 +99,12 @@ rec { ]; }; + windowrules = [ + # TODO: Doesn't work, use focus_on_activate for now + # "suppressevent activate, class:^(Unity)$" + # "suppressevent activatefocus, class:^(Unity)$" + ]; + workspacerules = { "2" = [ "neovide" diff --git a/home/modules/hyprland/default.nix b/home/modules/hyprland/default.nix index 817f6e86..4e558742 100644 --- a/home/modules/hyprland/default.nix +++ b/home/modules/hyprland/default.nix @@ -438,7 +438,8 @@ in { ] ++ lib.pipe hyprland.transparent [ (builtins.map mkTranslucentRule) - ]; + ] + ++ hyprland.windowrules; dwindle = { pseudotile = true; diff --git a/home/modules/hyprland/options.nix b/home/modules/hyprland/options.nix index 2e0b3ec1..f3ae8fbc 100644 --- a/home/modules/hyprland/options.nix +++ b/home/modules/hyprland/options.nix @@ -90,6 +90,16 @@ with mylib.modules; { ''; }; + windowrules = mkOption { + type = types.listOf types.str; + description = "Specify specific window rules."; + example = '' + [ + "suppressevent activate, class: Unity" + ] + ''; + }; + transparent-opacity = mkOption { type = types.str; description = "The opacity transparent windows should have.";