Modules/Hyprland: Add generic windowrules option
This commit is contained in:
@ -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"
|
||||
|
@ -438,7 +438,8 @@ in {
|
||||
]
|
||||
++ lib.pipe hyprland.transparent [
|
||||
(builtins.map mkTranslucentRule)
|
||||
];
|
||||
]
|
||||
++ hyprland.windowrules;
|
||||
|
||||
dwindle = {
|
||||
pseudotile = true;
|
||||
|
@ -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.";
|
||||
|
Reference in New Issue
Block a user