#!/bin/sh # This file is part of the element-web-patches. # # element-web-patches is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by the # Free Software Foundation, either version 3 of the License, # or (at your option) any later version. # # element-web-patches is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. # See the GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with element-web-patches. If not, see . #echo "Enter the path to your notification MP3 file" #read -ep "> " notification_mp3_path #echo "Enter the path to your notification OGG file" #read -ep "> " notification_ogg_path echo "Replacing notification sounds..." #cp -f "./files/message.mp3" "${1}"/webapp/media/message.mp3 cp -f "./files/message.mp3" "${1}"/node_modules/matrix-react-sdk/res/media/message.mp3 #cp -f "./files/message.ogg" "${1}"/webapp/media/message.ogg cp -f "./files/message.ogg" "${1}"/node_modules/matrix-react-sdk/res/media/message.ogg