Merge pull request #117377 from SEbbaDK/i3wsr

This commit is contained in:
Sandro 2021-04-06 12:03:26 +02:00 committed by GitHub
commit 2fb8be188f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 75 additions and 0 deletions

View file

@ -8715,6 +8715,12 @@
githubId = 19472270;
name = "Sebastian";
};
sebbadk = {
email = "sebastian@sebba.dk";
github = "SEbbaDK";
githubId = 1567527;
name = "Sebastian Hyberts";
};
sellout = {
email = "greg@technomadic.org";
github = "sellout";

View file

@ -0,0 +1,33 @@
{ lib, fetchFromGitHub, rustPlatform, libxcb, python3 }:
rustPlatform.buildRustPackage rec {
pname = "i3wsr";
version = "1.3.1";
src = fetchFromGitHub {
owner = "roosta";
repo = pname;
rev = "v${version}";
sha256 = "1zpyncg29y8cv5nw0vgd69nywbj1ppxf6qfm4zc6zz0gk0vxy4pn";
};
cargoSha256 = "0snys419d32anf73jcvrq8h9kp1fq0maqcxz6ww04yg2jv6j47nc";
nativeBuildInputs = [ python3 ];
buildInputs = [ libxcb ];
# has not tests
doCheck = false;
meta = with lib; {
description = "Automatically change i3 workspace names based on their contents";
longDescription = ''
Automatically sets the workspace names to match the windows on the workspace.
The chosen name for a workspace is a user-defined composite of the WM_CLASS X11
window property for each window in a workspace.
'';
homepage = "https://github.com/roosta/i3wsr";
license = licenses.mit;
maintainers = [ maintainers.sebbadk ];
};
}

View file

@ -0,0 +1,33 @@
{ lib, fetchFromGitHub, rustPlatform, libxcb, python3 }:
rustPlatform.buildRustPackage rec {
pname = "swaywsr";
version = "1.1.0";
src = fetchFromGitHub {
owner = "pedroscaff";
repo = pname;
rev = "6c4671c702f647395d983aaf607286db1c692db6";
sha256 = "0bmpbhyvgnbi5baj6v0wdxpdh9cnlzvcc44vh3vihmzsp6i5q05a";
};
cargoSha256 = "15wa03279lflr16a6kw7zcn3nvalnjydk9g6nj7xqxmc7zkpf0rm";
nativeBuildInputs = [ python3 ];
buildInputs = [ libxcb ];
# has not tests
doCheck = false;
meta = with lib; {
description = "Automatically change sway workspace names based on their contents";
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 ];
};
}

View file

@ -23467,6 +23467,7 @@ in
swaybg = callPackage ../applications/window-managers/sway/bg.nix { };
swayidle = callPackage ../applications/window-managers/sway/idle.nix { };
swaylock = callPackage ../applications/window-managers/sway/lock.nix { };
swaywsr = callPackage ../applications/window-managers/sway/wsr.nix { };
sway-contrib = recurseIntoAttrs (callPackages ../applications/window-managers/sway/contrib.nix { });
swaylock-fancy = callPackage ../applications/window-managers/sway/lock-fancy.nix { };
@ -23539,6 +23540,8 @@ in
i3status-rust = callPackage ../applications/window-managers/i3/status-rust.nix { };
i3wsr = callPackage ../applications/window-managers/i3/wsr.nix { };
i3-wk-switch = callPackage ../applications/window-managers/i3/wk-switch.nix { };
waybox = callPackage ../applications/window-managers/waybox { };