├── README.md ├── contents └── ui │ └── main.qml ├── metadata.desktop └── metadata.json /README.md: -------------------------------------------------------------------------------- 1 | # KDE plasmoidnotifications 2 | test up : plasmoidviewer --applet mert-plasmoid 3 | 4 | ![image](https://github.com/user-attachments/assets/1f7a879a-565b-4957-9c59-e04d7ca1caa0) 5 | -------------------------------------------------------------------------------- /contents/ui/main.qml: -------------------------------------------------------------------------------- 1 | import QtQuick 2.15 2 | import QtQuick.Layouts 1.15 3 | import org.kde.plasma.plasmoid 2.0 4 | import org.kde.plasma.components 3.0 as PlasmaComponents 5 | import Qt.labs.platform 1.1 as Platform 6 | 7 | PlasmoidItem { 8 | id: root 9 | width: 200 10 | height: 100 11 | 12 | property int counter: 0 13 | 14 | PlasmaComponents.Label { 15 | anchors.centerIn: parent 16 | text: "Bildirim sayısı: " + counter 17 | font.pointSize: 14 18 | } 19 | 20 | Timer { 21 | interval: 10000 // 10 saniye 22 | running: true 23 | repeat: true 24 | onTriggered: { 25 | sendNotification() 26 | } 27 | } 28 | 29 | Platform.SystemTrayIcon { 30 | id: systemTrayIcon 31 | visible: true 32 | } 33 | 34 | function sendNotification() { 35 | counter++ 36 | systemTrayIcon.showMessage("Test Bildirimi", "Bu " + counter + ". bildirim") 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /metadata.desktop: -------------------------------------------------------------------------------- 1 | [Desktop Entry] 2 | Name=Mert's Plasmoid 3 | Comment=Displays a simple message 4 | Icon=plasmoid 5 | Type=Service 6 | ServiceTypes=Plasma/Applet 7 | 8 | X-KDE-PluginInfo-Author=Mert 9 | X-KDE-PluginInfo-Email=mert@example.com 10 | X-KDE-PluginInfo-Name=mert-plasmoid 11 | X-KDE-PluginInfo-Version=1.0 12 | X-KDE-PluginInfo-Website=https://example.com 13 | X-KDE-PluginInfo-License=GPL-2.0+ 14 | -------------------------------------------------------------------------------- /metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "KPlugin": { 3 | "Name": "Mert's Plasmoid", 4 | "Description": "Displays a simple message", 5 | "Icon": "plasmoid", 6 | "Author": "Mert", 7 | "Email": "mert@example.com", 8 | "Version": "1.0", 9 | "Website": "https://example.com", 10 | "License": "GPL-2.0+" 11 | }, 12 | "X-Plasma-API": "declarativeappletscript", 13 | "X-Plasma-MainScript": "ui/main.qml" 14 | } 15 | --------------------------------------------------------------------------------