Merge pull request #97020 from samuelgrf/initpkg/dynamic-workspaces
kwin-dynamic-workspaces: init at 1.0.1
This commit is contained in:
commit
a1b634bd7e
2 changed files with 41 additions and 0 deletions
39
pkgs/desktops/plasma-5/kwin/scripts/dynamic-workspaces.nix
Normal file
39
pkgs/desktops/plasma-5/kwin/scripts/dynamic-workspaces.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -25484,6 +25484,8 @@ in
|
||||||
|
|
||||||
plasma-applet-caffeine-plus = libsForQt5.callPackage ../desktops/plasma-5/addons/caffeine-plus.nix { };
|
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 { };
|
kwin-tiling = libsForQt5.callPackage ../desktops/plasma-5/kwin/scripts/tiling.nix { };
|
||||||
|
|
||||||
krohnkite = libsForQt5.callPackage ../desktops/plasma-5/kwin/scripts/krohnkite.nix { };
|
krohnkite = libsForQt5.callPackage ../desktops/plasma-5/kwin/scripts/krohnkite.nix { };
|
||||||
|
|
Loading…
Reference in a new issue