# SPDX-FileCopyrightText: 2026 Matvey Shcherbinin # SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL # Event definitions for KNotification. The file name matches the KAboutData # component name, which is what NotificationManager sets on every notification # it posts - see core/notify/NotificationManager.cpp. # # No audio ships with this application. Every Sound= below is a name out of the # freedesktop.org sound naming specification, which is resolved against whichever # sound theme the desktop is set to - ocean on Plasma 6, with # sound-theme-freedesktop underneath it as the fallback every theme inherits. A # bundled .ogg would be a file that ignores the user's theme, ignores their # volume, and has to be licence-audited; a spec name is none of those. # # There are three message events rather than one, and they differ only in their # Action= line. That is deliberate: which one gets posted is decided by where the # user's attention is (see eventForAttention()), and splitting them here rather # than in C++ is what puts each case in System Settings as its own switch. A user # who wants the in-window sound gone can turn off exactly that. [Global] IconName=io.github.bitzuka.koutnet Name=KOutNet Comment=P2P encrypted messenger for LAN, VPN and Matrix DesktopEntry=io.github.bitzuka.koutnet # Window behind something else, but somebody is at the machine. The screen is # enough, so this one is silent. [Event/message] Name=New message Comment=Somebody has written to you while the window was not in front Action=Popup # Window in front. A popup would be repeating what is already on the screen, # so this event is intentionally silent. [Event/messagewatching] Name=New message while you are reading Comment=Somebody has written to you while the window was in front Action=Popup # No input for a while. Keep it visible but silent by default. [Event/messageaway] Name=New message while you are away Comment=Somebody has written to you while you were idle Action=Popup # A ringing telephone is the one case that is worth interrupting whatever is in # front, so it never checks where the attention is. [Event/call] Name=Incoming call Comment=Somebody is calling you Action=Popup|Sound Sound=phone-incoming-call