initial commit
This commit is contained in:
commit
6844038616
294 changed files with 37788 additions and 0 deletions
36
modules/Quickshell.Services.SystemTray/SystemTray.json
Normal file
36
modules/Quickshell.Services.SystemTray/SystemTray.json
Normal file
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
"name": "SystemTray",
|
||||
"module": "Quickshell.Services.SystemTray",
|
||||
"type": "class",
|
||||
"super": {
|
||||
"type": "qt",
|
||||
"module": "qml.QtQml",
|
||||
"name": "QtObject"
|
||||
},
|
||||
"description": "System tray",
|
||||
"details": "Referencing the SystemTray singleton will make quickshell start tracking\nsystem tray contents, which are updated as the tray changes, and can be\naccessed via the TYPE99Vitems99Tprop99TYPE property.\n",
|
||||
"flags": [
|
||||
"singleton"
|
||||
],
|
||||
"properties": {
|
||||
"items": {
|
||||
"type": {
|
||||
"type": "local",
|
||||
"module": "Quickshell",
|
||||
"name": "ObjectModel",
|
||||
"of": {
|
||||
"type": "local",
|
||||
"module": "Quickshell.Services.SystemTray",
|
||||
"name": "SystemTrayItem"
|
||||
}
|
||||
},
|
||||
"details": "List of all system tray icons.\n",
|
||||
"flags": [
|
||||
"readonly"
|
||||
]
|
||||
}
|
||||
},
|
||||
"functions": [],
|
||||
"signals": {},
|
||||
"variants": {}
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"name": "SystemTrayCategory",
|
||||
"module": "Quickshell.Services.SystemTray",
|
||||
"type": "enum",
|
||||
"description": "Category of a SystemTrayItem.",
|
||||
"details": "See TYPE99MQS_Quickshell_Services_SystemTray99NSystemTrayItem99Vcategory99Tprop99TYPE.\n",
|
||||
"variants": {
|
||||
"Hardware": {
|
||||
"details": "Hardware controls like battery indicators or volume control.\n"
|
||||
},
|
||||
"ApplicationStatus": {
|
||||
"details": "The fallback category for general applications or anything that does\nnot fit into a different category.\n"
|
||||
},
|
||||
"SystemServices": {
|
||||
"details": "System services such as IMEs or disk indexing.\n"
|
||||
}
|
||||
}
|
||||
}
|
217
modules/Quickshell.Services.SystemTray/SystemTrayItem.json
Normal file
217
modules/Quickshell.Services.SystemTray/SystemTrayItem.json
Normal file
|
@ -0,0 +1,217 @@
|
|||
{
|
||||
"name": "SystemTrayItem",
|
||||
"module": "Quickshell.Services.SystemTray",
|
||||
"type": "class",
|
||||
"super": {
|
||||
"type": "qt",
|
||||
"module": "qml.QtQml",
|
||||
"name": "QtObject"
|
||||
},
|
||||
"description": "An item in the system tray.",
|
||||
"details": "A system tray item, roughly conforming to the [kde/freedesktop spec]\n(there is no real spec, we just implemented whatever seemed to actually be used).\n\n[kde/freedesktop spec]: https://www.freedesktop.org/wiki/Specifications/StatusNotifierItem/StatusNotifierItem/\n",
|
||||
"flags": [
|
||||
"uncreatable"
|
||||
],
|
||||
"properties": {
|
||||
"category": {
|
||||
"type": {
|
||||
"type": "local",
|
||||
"module": "Quickshell.Services.SystemTray",
|
||||
"name": "SystemTrayCategory"
|
||||
},
|
||||
"details": null,
|
||||
"flags": [
|
||||
"readonly"
|
||||
]
|
||||
},
|
||||
"onlyMenu": {
|
||||
"type": {
|
||||
"type": "qt",
|
||||
"module": "qml",
|
||||
"name": "bool"
|
||||
},
|
||||
"details": "If this tray item only offers a menu and activation will do nothing.\n",
|
||||
"flags": [
|
||||
"readonly"
|
||||
]
|
||||
},
|
||||
"hasMenu": {
|
||||
"type": {
|
||||
"type": "qt",
|
||||
"module": "qml",
|
||||
"name": "bool"
|
||||
},
|
||||
"details": "If this tray item has an associated menu accessible via TYPE99Vdisplay99Tfunc99TYPE or TYPE99Vmenu99Tprop99TYPE.\n",
|
||||
"flags": [
|
||||
"readonly"
|
||||
]
|
||||
},
|
||||
"title": {
|
||||
"type": {
|
||||
"type": "qt",
|
||||
"module": "qml",
|
||||
"name": "string"
|
||||
},
|
||||
"details": "Text that describes the application.\n",
|
||||
"flags": [
|
||||
"readonly"
|
||||
]
|
||||
},
|
||||
"menu": {
|
||||
"type": {
|
||||
"type": "local",
|
||||
"module": "Quickshell",
|
||||
"name": "QsMenuHandle"
|
||||
},
|
||||
"details": "A handle to the menu associated with this tray item, if any.\n\nCan be displayed with TYPE99MQS_Quickshell99NQsMenuAnchor99TYPE or TYPE99MQS_Quickshell99NQsMenuOpener99TYPE.\n",
|
||||
"flags": [
|
||||
"readonly"
|
||||
]
|
||||
},
|
||||
"tooltipTitle": {
|
||||
"type": {
|
||||
"type": "qt",
|
||||
"module": "qml",
|
||||
"name": "string"
|
||||
},
|
||||
"details": null,
|
||||
"flags": [
|
||||
"readonly"
|
||||
]
|
||||
},
|
||||
"status": {
|
||||
"type": {
|
||||
"type": "local",
|
||||
"module": "Quickshell.Services.SystemTray",
|
||||
"name": "SystemTrayStatus"
|
||||
},
|
||||
"details": null,
|
||||
"flags": [
|
||||
"readonly"
|
||||
]
|
||||
},
|
||||
"tooltipDescription": {
|
||||
"type": {
|
||||
"type": "qt",
|
||||
"module": "qml",
|
||||
"name": "string"
|
||||
},
|
||||
"details": null,
|
||||
"flags": [
|
||||
"readonly"
|
||||
]
|
||||
},
|
||||
"id": {
|
||||
"type": {
|
||||
"type": "qt",
|
||||
"module": "qml",
|
||||
"name": "string"
|
||||
},
|
||||
"details": "A name unique to the application, such as its name.\n",
|
||||
"flags": [
|
||||
"readonly"
|
||||
]
|
||||
},
|
||||
"icon": {
|
||||
"type": {
|
||||
"type": "qt",
|
||||
"module": "qml",
|
||||
"name": "string"
|
||||
},
|
||||
"details": "Icon source string, usable as an Image source.\n",
|
||||
"flags": [
|
||||
"readonly"
|
||||
]
|
||||
}
|
||||
},
|
||||
"functions": [
|
||||
{
|
||||
"ret": {
|
||||
"type": "qt",
|
||||
"module": "qml",
|
||||
"name": "void"
|
||||
},
|
||||
"name": "activate",
|
||||
"id": "activate",
|
||||
"details": "Primary activation action, generally triggered via a left click.\n",
|
||||
"params": []
|
||||
},
|
||||
{
|
||||
"ret": {
|
||||
"type": "qt",
|
||||
"module": "qml",
|
||||
"name": "void"
|
||||
},
|
||||
"name": "display",
|
||||
"id": "display",
|
||||
"details": "Display a platform menu at the given location relative to the parent window.\n",
|
||||
"params": [
|
||||
{
|
||||
"name": "parentWindow",
|
||||
"type": {
|
||||
"type": "qt",
|
||||
"module": "qml.QtQml",
|
||||
"name": "QtObject"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "relativeX",
|
||||
"type": {
|
||||
"type": "qt",
|
||||
"module": "qml",
|
||||
"name": "int"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "relativeY",
|
||||
"type": {
|
||||
"type": "qt",
|
||||
"module": "qml",
|
||||
"name": "int"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ret": {
|
||||
"type": "qt",
|
||||
"module": "qml",
|
||||
"name": "void"
|
||||
},
|
||||
"name": "scroll",
|
||||
"id": "scroll",
|
||||
"details": "Scroll action, such as changing volume on a mixer.\n",
|
||||
"params": [
|
||||
{
|
||||
"name": "delta",
|
||||
"type": {
|
||||
"type": "qt",
|
||||
"module": "qml",
|
||||
"name": "int"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "horizontal",
|
||||
"type": {
|
||||
"type": "qt",
|
||||
"module": "qml",
|
||||
"name": "bool"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"ret": {
|
||||
"type": "qt",
|
||||
"module": "qml",
|
||||
"name": "void"
|
||||
},
|
||||
"name": "secondaryActivate",
|
||||
"id": "secondaryActivate",
|
||||
"details": "Secondary activation action, generally triggered via a middle click.\n",
|
||||
"params": []
|
||||
}
|
||||
],
|
||||
"signals": {},
|
||||
"variants": {}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
"name": "SystemTrayMenuWatcher",
|
||||
"module": "Quickshell.Services.SystemTray",
|
||||
"type": "class",
|
||||
"super": {
|
||||
"type": "qt",
|
||||
"module": "qml.QtQml",
|
||||
"name": "QtObject"
|
||||
},
|
||||
"description": "Accessor for SystemTrayItem menus.",
|
||||
"details": "> [!ERROR] Deprecated in favor of TYPE99MQS_Quickshell99NQsMenuOpener99Vmenu99Tprop99TYPE,\n> which now supports directly accessing a tray menu via TYPE99MQS_Quickshell_Services_SystemTray99NSystemTrayItem99Vmenu99Tprop99TYPE.\n\nSystemTrayMenuWatcher provides access to the associated\nTYPE99MQS_Quickshell_DBusMenu99NDBusMenuItem99TYPE for a tray item.\n",
|
||||
"properties": {
|
||||
"menu": {
|
||||
"type": {
|
||||
"type": "local",
|
||||
"module": "Quickshell.DBusMenu",
|
||||
"name": "DBusMenuItem"
|
||||
},
|
||||
"details": "The menu associated with the tray item. Will be null if TYPE99VtrayItem99Tprop99TYPE is null\nor has no associated menu.\n",
|
||||
"flags": [
|
||||
"readonly"
|
||||
]
|
||||
},
|
||||
"trayItem": {
|
||||
"type": {
|
||||
"type": "local",
|
||||
"module": "Quickshell.Services.SystemTray",
|
||||
"name": "SystemTrayItem"
|
||||
},
|
||||
"details": "The tray item to watch.\n"
|
||||
}
|
||||
},
|
||||
"functions": [],
|
||||
"signals": {},
|
||||
"variants": {}
|
||||
}
|
18
modules/Quickshell.Services.SystemTray/SystemTrayStatus.json
Normal file
18
modules/Quickshell.Services.SystemTray/SystemTrayStatus.json
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"name": "SystemTrayStatus",
|
||||
"module": "Quickshell.Services.SystemTray",
|
||||
"type": "enum",
|
||||
"description": "Statis of a SystemTrayItem.",
|
||||
"details": "See TYPE99MQS_Quickshell_Services_SystemTray99NSystemTrayItem99Vstatus99Tprop99TYPE.\n",
|
||||
"variants": {
|
||||
"Passive": {
|
||||
"details": "A passive item does not convey important information and can be considered idle. You may want to hide these.\n"
|
||||
},
|
||||
"NeedsAttention": {
|
||||
"details": "An item that needs attention conveys very important information such as low battery.\n"
|
||||
},
|
||||
"Active": {
|
||||
"details": "An active item may have information more important than a passive one and you probably do not want to hide it.\n"
|
||||
}
|
||||
}
|
||||
}
|
5
modules/Quickshell.Services.SystemTray/index.json
Normal file
5
modules/Quickshell.Services.SystemTray/index.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"name": "Quickshell.Services.SystemTray",
|
||||
"description": "Types for implementing a system tray",
|
||||
"details": ""
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue