Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
41 lines
1.0 KiB
Nix
41 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
libxcb,
|
|
python3,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage {
|
|
pname = "swaywsr";
|
|
version = "1.3.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pedroscaff";
|
|
repo = "swaywsr";
|
|
rev = "521fbf92738f44be438d3be6bdd665f02ac9d35c";
|
|
hash = "sha256-6hGEcJz+zGfwz1q+XKQYfyJJK7lr+kCgk2/uiq1xP0M=";
|
|
};
|
|
|
|
cargoHash = "sha256-u+aMwj+IxFY+fSAECkKr8dSPVw2q+FXZpgwwexu7BFU=";
|
|
|
|
nativeBuildInputs = [ python3 ];
|
|
buildInputs = [ libxcb ];
|
|
|
|
# has not tests
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Automatically change sway workspace names based on their contents";
|
|
mainProgram = "swaywsr";
|
|
longDescription = ''
|
|
Automatically sets the workspace names to match the windows on the workspace.
|
|
The chosen name for a workspace is a composite of the app_id or WM_CLASS X11
|
|
window property for each window in a workspace.
|
|
'';
|
|
homepage = "https://github.com/pedroscaff/swaywsr";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.sebbadk ];
|
|
};
|
|
}
|