fish: Add tadaping
function
This commit is contained in:
parent
62a7cc2dc4
commit
83cf194c18
2 changed files with 11 additions and 0 deletions
|
@ -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.";
|
||||
};
|
||||
}
|
||||
|
|
BIN
home-manager/modules/fish/tada.m4a
Normal file
BIN
home-manager/modules/fish/tada.m4a
Normal file
Binary file not shown.
Loading…
Reference in a new issue