From 83cf194c1848f3fc3a542c8964be2246644496ea Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Tue, 17 Sep 2024 20:15:31 +0200 Subject: [PATCH] fish: Add `tadaping` function --- home-manager/modules/fish/functions.nix | 11 +++++++++++ home-manager/modules/fish/tada.m4a | Bin 0 -> 11200 bytes 2 files changed, 11 insertions(+) create mode 100644 home-manager/modules/fish/tada.m4a 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 0000000000000000000000000000000000000000..cd491822e6d8ce0fe595653d839da45cb8b62f56 GIT binary patch literal 11200 zcmajFbzB@x(>6Mb1rP2n!QBZ?0we^t;1b+n@gNJq-2#N*5?q73TkwPcA?V@+3l0nW zE%*Jr=REKC$2s+zYg($Oy1Kfid#1Yq0HCt=@O4!Yl%)dzB;YZ$1G_jOzz+Zby0yEN z6#%euIa!)}tRMkz%)Q8vxsf9v6v50gP&uZv? z)T^9$UA!6r&w19V-3GtL9a;Dkk`c{LG5jRH%;;Imxyjd4vfPBlVkAoMWs;7@15$A!6^K6iIFIesty>Y+|3 zsu*X& zHA$3Q|5IOS&YQK|g8OG`GY=sw+f%HBrx72bE?08YGTk=(MFQ3A%2{$pQhHvGsL<DVB9_n5>5(S!Zt}y}~?YnV*%yXJG58FPyd0H4v zaN4owdV3>(V)Mrd!NJQThW=Tx_)XfkSkwkc&Y~W~F@^769bZ;;Pbwvd#z<`gwKG)6 z(auOQ@9@1|WIK~6s@2hFLYe;9k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