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:
@@ -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; };
|
||||
|
||||
@@ -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" -- "$@"
|
||||
'';
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@ pkgs.writeShellApplication {
|
||||
text = ''
|
||||
#!/run/current-system/sw/bin/bash
|
||||
|
||||
[ "$SOUNDS_ENABLED" -eq 1 ]
|
||||
[ "$SOUNDS_ENABLED" = "true" ]
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user