1 { lib, fetchFromGitHub, rustPlatform, libxcb, python3 }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
10 rev = "521fbf92738f44be438d3be6bdd665f02ac9d35c";
11 hash = "sha256-6hGEcJz+zGfwz1q+XKQYfyJJK7lr+kCgk2/uiq1xP0M=";
14 cargoHash = "sha256-zoV2vy41fVsX8BtddURqQymMX4Zpso+GOBBqoVr3tYo=";
16 nativeBuildInputs = [ python3 ];
17 buildInputs = [ libxcb ];
23 description = "Automatically change sway workspace names based on their contents";
24 mainProgram = "swaywsr";
26 Automatically sets the workspace names to match the windows on the workspace.
27 The chosen name for a workspace is a composite of the app_id or WM_CLASS X11
28 window property for each window in a workspace.
30 homepage = "https://github.com/pedroscaff/swaywsr";
31 license = licenses.mit;
32 maintainers = [ maintainers.sebbadk ];