initial commit

This commit is contained in:
Xanazf 2024-09-28 02:35:19 +03:00
commit 6844038616
294 changed files with 37788 additions and 0 deletions

View 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 {{< qmltypelink type=\"\" module=\"\" name=\"\" mtype=\"prop\" mname=\"items\" >}} 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": {}
}

View file

@ -0,0 +1,18 @@
{
"name": "SystemTrayCategory",
"module": "Quickshell.Services.SystemTray",
"type": "enum",
"description": "Category of a SystemTrayItem.",
"details": "See {{< qmltypelink type=\"local\" module=\"Quickshell.Services.SystemTray\" name=\"SystemTrayItem\" mtype=\"prop\" mname=\"category\" >}}.\n",
"variants": {
"Hardware": {
"details": "Hardware controls like battery indicators or volume control.\n"
},
"SystemServices": {
"details": "System services such as IMEs or disk indexing.\n"
},
"ApplicationStatus": {
"details": "The fallback category for general applications or anything that does\nnot fit into a different category.\n"
}
}
}

View file

@ -0,0 +1,206 @@
{
"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": {
"status": {
"type": {
"type": "local",
"module": "Quickshell.Services.SystemTray",
"name": "SystemTrayStatus"
},
"details": null,
"flags": [
"readonly"
]
},
"tooltipTitle": {
"type": {
"type": "qt",
"module": "qml",
"name": "string"
},
"details": null,
"flags": [
"readonly"
]
},
"icon": {
"type": {
"type": "qt",
"module": "qml",
"name": "string"
},
"details": "Icon source string, usable as an Image source.\n",
"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"
]
},
"title": {
"type": {
"type": "qt",
"module": "qml",
"name": "string"
},
"details": "Text that describes the application.\n",
"flags": [
"readonly"
]
},
"id": {
"type": {
"type": "qt",
"module": "qml",
"name": "string"
},
"details": "A name unique to the application, such as its name.\n",
"flags": [
"readonly"
]
},
"hasMenu": {
"type": {
"type": "qt",
"module": "qml",
"name": "bool"
},
"details": "If this tray item has an associated menu accessible via {{< qmltypelink type=\"\" module=\"\" name=\"\" mtype=\"func\" mname=\"display\" >}}\nor a\t{{< qmltypelink type=\"local\" module=\"Quickshell.Services.SystemTray\" name=\"SystemTrayMenuWatcher\" mtype=\"\" mname=\"\" >}}.\n",
"flags": [
"readonly"
]
},
"tooltipDescription": {
"type": {
"type": "qt",
"module": "qml",
"name": "string"
},
"details": null,
"flags": [
"readonly"
]
},
"category": {
"type": {
"type": "local",
"module": "Quickshell.Services.SystemTray",
"name": "SystemTrayCategory"
},
"details": null,
"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": {}
}

View file

@ -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": "SystemTrayMenuWatcher provides access to the associated\n{{< qmltypelink type=\"local\" module=\"Quickshell.DBusMenu\" name=\"DBusMenuItem\" mtype=\"\" mname=\"\" >}} 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 {{< qmltypelink type=\"\" module=\"\" name=\"\" mtype=\"prop\" mname=\"trayItem\" >}} 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": {}
}

View file

@ -0,0 +1,18 @@
{
"name": "SystemTrayStatus",
"module": "Quickshell.Services.SystemTray",
"type": "enum",
"description": "Statis of a SystemTrayItem.",
"details": "See {{< qmltypelink type=\"local\" module=\"Quickshell.Services.SystemTray\" name=\"SystemTrayItem\" mtype=\"prop\" mname=\"status\" >}}.\n",
"variants": {
"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"
},
"Passive": {
"details": "A passive item does not convey important information and can be considered idle. You may want to hide these.\n"
}
}
}

View file

@ -0,0 +1,5 @@
{
"name": "Quickshell.Services.SystemTray",
"description": "Types for implementing a system tray",
"details": ""
}