1
0
Fork 0

Change element notification sound

This commit is contained in:
Malte 2022-09-09 18:24:53 +02:00
parent 30b1c3e177
commit 2acd5a6d4f
2 changed files with 2 additions and 7 deletions

View file

@ -1,16 +1,11 @@
final: prev: let
chime = final.fetchurl {
url = "https://www.mediacollege.com/downloads/sound-effects/star-trek/tng/tng-doorbell.ogg";
sha256 = "sha256-tpDJ8lnmSwG5Puq6dJhiW3w+Id0EiPoqlim6N3BPz7c=";
};
in {
final: prev: {
element-web = prev.element-web.overrideAttrs (old: {
preInstall = ''
bundlecss=$(find . -name 'bundle.css')
cat ${./user.css} >> $bundlecss
bundlejs=$(find . -name 'vendors~init.js')
sed -i 's/return n.room.roomId===e||n.isUnread}/return n.room.roomId===e||n.hasUnreadCount}/' $bundlejs
cp ${chime} media/message.ogg
cp ${./orville_communicator.opus} media/message.ogg
'';
});
}

Binary file not shown.