mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-15 13:22:19 +01:00
komorebi-for-kde/nix/ -> nix/linux/ komorebi-for-mac/nix/ -> nix/macos/ The nix expressions of the platforms (modules, option files, VM test suites, kwin effects, the darwin module) sit next to the existing nix/workspace-src.nix. Renames only (252 files); the flakes that import them are replaced by one root flake later in this stack, so nix does not evaluate at this revision.
41 lines
1.5 KiB
Nix
41 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
# "Geometry Change" by Peter Fajdiga (GPLv3): animates windows that are moved or resized by programs
|
|
# or scripts, which stock KWin does not. It is a scripted (JS) effect package, so installing it is
|
|
# only a copy into `share/kwin/effects`; kwin discovers it at startup, not afterwards. Its metadata
|
|
# already says `"EnabledByDefault": false`, so KWin does not load it until it is asked for.
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "kwin-effect-geometry-change";
|
|
version = "1.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "peterfajdiga";
|
|
repo = "kwin4_effect_geometry_change";
|
|
rev = "398491e8a3f5b9bb785850439abd41820f3c5986";
|
|
hash = "sha256-aJx3hDzIk/bQrrRvs/CPigJ0miTgqxd8OI9I6kuiXkk=";
|
|
};
|
|
|
|
# `Curve`: any of Qt's easing curves by name, which is how komorebi's `animation.style` reaches the
|
|
# effect (it has one fixed curve, an ease out exponential, and no setting for it)
|
|
patches = [ ./kwin-effect-geometry-change/curve.patch ];
|
|
|
|
dontBuild = true;
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/share/kwin/effects/kwin4_effect_geometry_change
|
|
cp -r package/* $out/share/kwin/effects/kwin4_effect_geometry_change/
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "KWin effect that animates windows moved or resized by programs or scripts";
|
|
homepage = "https://github.com/peterfajdiga/kwin4_effect_geometry_change";
|
|
license = lib.licenses.gpl3Only;
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|