Skip to content

Commit

Permalink
Add the ability to disable some of the kwin animations (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
Morwdan authored Aug 18, 2024
1 parent 8726eca commit 2dd9c33
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions modules/kwin.nix
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ let
(x: x == value)
(throw "getIndexFromEnum (kwin): Value ${value} isn't present in the enum. This is a bug")
enum;

convertPoloniumFilter = list:
if list == null
then null
Expand Down Expand Up @@ -117,7 +117,7 @@ in
};
minimization = {
animation = mkOption {
type = with types; nullOr (enum [ "squash" "magiclamp" ]);
type = with types; nullOr (enum [ "squash" "magiclamp" "off" ]);
default = null;
example = "magiclamp";
description = "The effect when windows are minimized.";
Expand Down Expand Up @@ -148,14 +148,14 @@ in
description = "Arrange desktops in a virtual cube.";
};
desktopSwitching.animation = mkOption {
type = with types; nullOr (enum [ "fade" "slide" ]);
type = with types; nullOr (enum [ "fade" "slide" "off" ]);
default = null;
example = "fade";
description = "The animation used when switching virtual desktop.";
};
windowOpenClose = {
animation = mkOption {
type = with types; nullOr (enum [ "fade" "glide" "scale" ]);
type = with types; nullOr (enum [ "fade" "glide" "scale" "off" ]);
default = null;
example = "glide";
description = "The animation used when opening/closing windows.";
Expand Down Expand Up @@ -361,14 +361,16 @@ in
};
layout = {
engine =
let enumVals = [
"binaryTree"
"half"
"threeColumn"
"monocle"
"kwin"
];
in mkOption {
let
enumVals = [
"binaryTree"
"half"
"threeColumn"
"monocle"
"kwin"
];
in
mkOption {
type = with types; nullOr (enum enumVals);
default = null;
example = "binaryTree";
Expand Down

0 comments on commit 2dd9c33

Please sign in to comment.