Compare commits

...

2 commits

Author SHA1 Message Date
Bruno BELANYI 6ebfa1a8cc flake: enable shellcheck pre-commit hook
All checks were successful
continuous-integration/drone/push Build is passing
2021-11-12 09:42:39 +01:00
Bruno BELANYI 7d31aa93db pkgs: change-audio: 0.1.0 -> 0.1.1
Fix issue with not showing notification at 0% volume.
2021-11-12 09:40:37 +01:00
3 changed files with 6 additions and 2 deletions

View file

@ -118,6 +118,10 @@
nixpkgs-fmt = { nixpkgs-fmt = {
enable = true; enable = true;
}; };
shellcheck = {
enable = true;
};
}; };
}; };
}; };

View file

@ -9,7 +9,7 @@ else
fi fi
pamixer --allow-boost "$upDown" "$2" pamixer --allow-boost "$upDown" "$2"
newVolume="$(pamixer --get-volume)" newVolume="$(pamixer --get-volume || true)"
notify-send -u low \ notify-send -u low \
-h string:x-canonical-private-synchronous:change-audio \ -h string:x-canonical-private-synchronous:change-audio \

View file

@ -1,7 +1,7 @@
{ lib, libnotify, makeWrapper, pamixer, shellcheck, stdenvNoCC }: { lib, libnotify, makeWrapper, pamixer, shellcheck, stdenvNoCC }:
stdenvNoCC.mkDerivation rec { stdenvNoCC.mkDerivation rec {
pname = "change-audio"; pname = "change-audio";
version = "0.1.0"; version = "0.1.1";
src = ./change-audio; src = ./change-audio;