Add RTTTL/eMelody/iMelody ringtones and separate notification/SMS sound config

This commit is contained in:
Luxferre committed 2026-10-30 12:11:16 +02:00
1 parent c766f6c53b
commit 9c28fa1e4c
46 files changed
+2452 -148

No files matched your search

+4 -2
View File
@@ -230,7 +230,8 @@ void onFriendRequest(Tox*, const Tox_Public_Key publicKey,
req.pubKeyHex = hex;
req.message.assign(reinterpret_cast<const char*>(message), length);
ctx->pendingReqs.push_back(std::move(req));
neoui_vibrate(70);
bananarchy::runAsyncCmd("PATH=\"$HOME/.config/sxmo/hooks:/usr/share/sxmo/default_hooks:$PATH\" "
"sxmo_hook_notification.sh >/dev/null 2>&1");
ctx->uiDirty = true;
}
@@ -241,7 +242,8 @@ void onFriendMessage(Tox* tox, Tox_Friend_Number friendNum,
std::string pkHex = getFriendPubKeyHex(tox, friendNum);
std::string txt(reinterpret_cast<const char*>(message), length);
appendFriendChat(pkHex, false, txt);
neoui_vibrate(60);
bananarchy::runAsyncCmd("PATH=\"$HOME/.config/sxmo/hooks:/usr/share/sxmo/default_hooks:$PATH\" "
"sxmo_hook_notification.sh >/dev/null 2>&1");
ctx->uiDirty = true;
}