fish: Add tadaping function

This commit is contained in:
Erwin Boskma 2024-09-17 20:15:31 +02:00
parent 62a7cc2dc4
commit 83cf194c18
Signed by: erwin
SSH key fingerprint: SHA256:/Wk1WZdLg+vQHs3in9qq7PsIp8SMzwGSk/RLZ5zPuZk
2 changed files with 11 additions and 0 deletions

View file

@ -102,4 +102,15 @@
end 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.";
};
} }

Binary file not shown.