home: add salert
This commit is contained in:
parent
f8a81ff83b
commit
4336b974a4
BIN
users/pbsds/home/files/sounds/NTR-BKIE-USA-0065.wav
Normal file
BIN
users/pbsds/home/files/sounds/NTR-BKIE-USA-0065.wav
Normal file
Binary file not shown.
BIN
users/pbsds/home/files/sounds/NTR-BKIE-USA-0134.wav
Normal file
BIN
users/pbsds/home/files/sounds/NTR-BKIE-USA-0134.wav
Normal file
Binary file not shown.
BIN
users/pbsds/home/files/sounds/NTR-BKIE-USA-0137.wav
Normal file
BIN
users/pbsds/home/files/sounds/NTR-BKIE-USA-0137.wav
Normal file
Binary file not shown.
BIN
users/pbsds/home/files/sounds/NTR-BKIE-USA-013e.wav
Normal file
BIN
users/pbsds/home/files/sounds/NTR-BKIE-USA-013e.wav
Normal file
Binary file not shown.
BIN
users/pbsds/home/files/sounds/TFH_MadameC_Sing.wav
Normal file
BIN
users/pbsds/home/files/sounds/TFH_MadameC_Sing.wav
Normal file
Binary file not shown.
@ -6,5 +6,6 @@
|
||||
./profiles/gnome
|
||||
./profiles/mpv.nix
|
||||
./profiles/desktop.nix
|
||||
./profiles/salert.nix
|
||||
];
|
||||
}
|
||||
|
26
users/pbsds/home/profiles/salert.nix
Normal file
26
users/pbsds/home/profiles/salert.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{ pkgs, lib, ... }:
|
||||
let
|
||||
inherit (lib) getExe;
|
||||
inherit (pkgs) mpv;
|
||||
in
|
||||
{
|
||||
programs = let
|
||||
rcScript = ''
|
||||
salert() {
|
||||
local retval=$?
|
||||
if test $retval -eq 0; then
|
||||
#${getExe mpv} ${../files/sounds/TFH_MadameC_Sing.wav} --no-video --really-quiet || true
|
||||
#${getExe mpv} ${../files/sounds/NTR-BKIE-USA-0065.wav} --no-video --really-quiet || true
|
||||
${getExe mpv} ${../files/sounds/NTR-BKIE-USA-0134.wav} --no-video --really-quiet || true
|
||||
else
|
||||
${getExe mpv} ${../files/sounds/NTR-BKIE-USA-0137.wav} --no-video --really-quiet || true
|
||||
fi
|
||||
return $retval
|
||||
}
|
||||
'';
|
||||
in {
|
||||
# TODO: fish
|
||||
bash.initExtra = rcScript;
|
||||
zsh.initExtra = rcScript;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user