diff --git a/users/pbsds/home/files/sounds/NTR-BKIE-USA-0065.wav b/users/pbsds/home/files/sounds/NTR-BKIE-USA-0065.wav new file mode 100644 index 0000000..210fb58 Binary files /dev/null and b/users/pbsds/home/files/sounds/NTR-BKIE-USA-0065.wav differ diff --git a/users/pbsds/home/files/sounds/NTR-BKIE-USA-0134.wav b/users/pbsds/home/files/sounds/NTR-BKIE-USA-0134.wav new file mode 100644 index 0000000..c006569 Binary files /dev/null and b/users/pbsds/home/files/sounds/NTR-BKIE-USA-0134.wav differ diff --git a/users/pbsds/home/files/sounds/NTR-BKIE-USA-0137.wav b/users/pbsds/home/files/sounds/NTR-BKIE-USA-0137.wav new file mode 100644 index 0000000..260310c Binary files /dev/null and b/users/pbsds/home/files/sounds/NTR-BKIE-USA-0137.wav differ diff --git a/users/pbsds/home/files/sounds/NTR-BKIE-USA-013e.wav b/users/pbsds/home/files/sounds/NTR-BKIE-USA-013e.wav new file mode 100644 index 0000000..12890f2 Binary files /dev/null and b/users/pbsds/home/files/sounds/NTR-BKIE-USA-013e.wav differ diff --git a/users/pbsds/home/files/sounds/TFH_MadameC_Sing.wav b/users/pbsds/home/files/sounds/TFH_MadameC_Sing.wav new file mode 100644 index 0000000..789d95f Binary files /dev/null and b/users/pbsds/home/files/sounds/TFH_MadameC_Sing.wav differ diff --git a/users/pbsds/home/gnome.nix b/users/pbsds/home/gnome.nix index a682b5c..6b7c615 100644 --- a/users/pbsds/home/gnome.nix +++ b/users/pbsds/home/gnome.nix @@ -6,5 +6,6 @@ ./profiles/gnome ./profiles/mpv.nix ./profiles/desktop.nix + ./profiles/salert.nix ]; } diff --git a/users/pbsds/home/profiles/salert.nix b/users/pbsds/home/profiles/salert.nix new file mode 100644 index 0000000..c5a7f91 --- /dev/null +++ b/users/pbsds/home/profiles/salert.nix @@ -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; + }; +}