19 version = "0-unstable-2024-03-19";
20 src = fetchFromGitHub {
22 repo = "sway-contrib";
23 rev = "5d33a290e3cac3f0fed38ff950939da28e3ebfd7";
24 hash = "sha256-2qYxkXowSSzVcpsPO4JoUqaH/VUkOOWu1RKFXp1CXGs=";
28 homepage = "https://github.com/OctopusET/sway-contrib";
29 license = licenses.mit;
30 platforms = platforms.all;
35 grimshot = stdenvNoCC.mkDerivation {
43 outputs = [ "out" "man" ];
46 nativeBuildInputs = [ makeWrapper installShellFiles ];
47 buildInputs = [ bash ];
49 installManPage grimshot.1
50 installShellCompletion --cmd grimshot grimshot-completion.bash
52 install -Dm 0755 grimshot $out/bin/grimshot
53 wrapProgram $out/bin/grimshot --set PATH \
66 doInstallCheck = true;
68 installCheckPhase = ''
69 # check always returns 0
70 if [[ $($out/bin/grimshot check | grep "NOT FOUND") ]]; then false
72 echo "grimshot check passed"
76 meta = with lib; meta // {
77 description = "Helper for screenshots within sway";
78 maintainers = with maintainers; [ evils ];
79 mainProgram = "grimshot";
84 inactive-windows-transparency = let
86 lname = "inactive-windows-transparency";
87 in python3Packages.buildPythonApplication {
90 pname = "sway-${lname}";
96 propagatedBuildInputs = [ python3Packages.i3ipc ];
99 install -Dm 0755 $src/${lname}.py $out/bin/${lname}.py
102 meta = with lib; meta // {
103 description = "It makes inactive sway windows transparent";
104 mainProgram = "${lname}.py";
105 maintainers = with maintainers; [
106 evils # packaged this as a side-effect of grimshot but doesn't use it