diff --git a/home-manager/modules/fish/functions.nix b/home-manager/modules/fish/functions.nix index 93a89a0..d51e5ef 100644 --- a/home-manager/modules/fish/functions.nix +++ b/home-manager/modules/fish/functions.nix @@ -102,4 +102,15 @@ end ''; }; + + tadaping = { + body = '' + while not ${pkgs.iputils}/bin/ping -c 1 $host > /dev/null 2>&1 + sleep 1 + end + ${pkgs.mpv}/bin/mpv --really-quiet ${./tada.m4a} + ''; + argumentNames = "host"; + description = "Ping a host until it responds, then play a sound."; + }; } diff --git a/home-manager/modules/fish/tada.m4a b/home-manager/modules/fish/tada.m4a new file mode 100644 index 0000000..cd49182 Binary files /dev/null and b/home-manager/modules/fish/tada.m4a differ