1

Modules/Hyprland: Add generic windowrules option

This commit is contained in:
2025-06-12 23:55:23 +02:00
parent c40d3905c3
commit 3a49bcca93
3 changed files with 18 additions and 1 deletions

View File

@ -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"

View File

@ -438,7 +438,8 @@ in {
]
++ lib.pipe hyprland.transparent [
(builtins.map mkTranslucentRule)
];
]
++ hyprland.windowrules;
dwindle = {
pseudotile = true;

View File

@ -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.";