kwin-dynamic-workspaces: init at 1.0.1

This commit is contained in:
Samuel Gräfenstein 2020-09-03 14:02:52 +02:00
parent 55e8cbd263
commit d86a966d65
No known key found for this signature in database
GPG key ID: EF76A063F15C63C8
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,39 @@
{ lib, mkDerivation, fetchFromGitHub
, kcoreaddons, kwindowsystem, plasma-framework, systemsettings }:
mkDerivation rec {
pname = "dynamic_workspaces";
version = "1.0.1";
src = fetchFromGitHub {
owner = "d86leader";
repo = pname;
rev = "v${version}";
sha256 = "1mnwh489i6l8z9s5a1zl7zybkw76pp9fdmmis41mym7r4wz4iznm";
};
buildInputs = [
kcoreaddons kwindowsystem plasma-framework systemsettings
];
dontBuild = true;
# 1. --global still installs to $HOME/.local/share so we use --packageroot
# 2. plasmapkg2 doesn't copy metadata.desktop into place, so we do that manually
installPhase = ''
runHook preInstall
plasmapkg2 --type kwinscript --install ${src} --packageroot $out/share/kwin/scripts
install -Dm644 ${src}/metadata.desktop $out/share/kservices5/dynamic_workspaces.desktop
runHook postInstall
'';
meta = with lib; {
description = "KWin script that automatically adds/removes virtual desktops";
license = licenses.bsd3;
maintainers = with maintainers; [ samuelgrf ];
inherit (src.meta) homepage;
inherit (kwindowsystem.meta) platforms;
};
}

View file

@ -25472,6 +25472,8 @@ in
plasma-applet-caffeine-plus = libsForQt5.callPackage ../desktops/plasma-5/addons/caffeine-plus.nix { };
kwin-dynamic-workspaces = libsForQt5.callPackage ../desktops/plasma-5/kwin/scripts/dynamic-workspaces.nix { };
kwin-tiling = libsForQt5.callPackage ../desktops/plasma-5/kwin/scripts/tiling.nix { };
krohnkite = libsForQt5.callPackage ../desktops/plasma-5/kwin/scripts/krohnkite.nix { };