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 = {
|
workspacerules = {
|
||||||
"2" = [
|
"2" = [
|
||||||
"neovide"
|
"neovide"
|
||||||
|
@ -438,7 +438,8 @@ in {
|
|||||||
]
|
]
|
||||||
++ lib.pipe hyprland.transparent [
|
++ lib.pipe hyprland.transparent [
|
||||||
(builtins.map mkTranslucentRule)
|
(builtins.map mkTranslucentRule)
|
||||||
];
|
]
|
||||||
|
++ hyprland.windowrules;
|
||||||
|
|
||||||
dwindle = {
|
dwindle = {
|
||||||
pseudotile = true;
|
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 {
|
transparent-opacity = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
description = "The opacity transparent windows should have.";
|
description = "The opacity transparent windows should have.";
|
||||||
|
Reference in New Issue
Block a user