consolidated script documentation into a single md file

wrote documentation on terminal sound effects

added a sound effect for `invoke`

added the function `build-drv`, which is a wrapper for nix-build that
puts the output nix store path to the derivation into an environment
variable instead of symlinking it in the current working directory
This commit is contained in:
2024-11-16 23:40:05 -05:00
parent 11824164b8
commit da0b2245c7
13 changed files with 264 additions and 237 deletions

View File

@@ -9,7 +9,7 @@
myScripts = {
# Scripts written using pkgs.writeShellApplication
icanhazip = super.callPackage ./scripts/commands/icanhazip.nix { pkgs = super; };
invoke = super.callPackage ./scripts/commands/invoke.nix { pkgs = super; };
invoke = super.callPackage ./scripts/commands/invoke.nix { pkgs = super; self = root; };
runbg = super.callPackage ./scripts/commands/runbg.nix { pkgs = super; };
splash = super.callPackage ./scripts/commands/splash.nix { pkgs = super; };
toolbelt = super.callPackage ./scripts/commands/toolbelt.nix { pkgs = super; };

View File

@@ -1,9 +1,10 @@
{ pkgs }:
{ pkgs, self }:
pkgs.writeShellApplication {
name = "invoke";
text = ''
cmd="$1"
shift
playshellsound ${self}/assets/sound/invoke.wav
nix run nixpkgs#"$cmd" -- "$@"
'';
}

View File

@@ -4,6 +4,6 @@ pkgs.writeShellApplication {
text = ''
#!/run/current-system/sw/bin/bash
[ "$SOUNDS_ENABLED" -eq 1 ]
[ "$SOUNDS_ENABLED" = "true" ]
'';
}