second try at custom tray menu

This commit is contained in:
Zacharias-Brohn
2025-10-24 02:15:37 +02:00
parent ad43c3c694
commit ad368a76d6
4 changed files with 160 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
pragma Singleton
import Quickshell
import Quickshell.Services.Notifications
Singleton {
id: root
function getTrayIcon(id: string, icon: string): string {
if (icon.includes("?path=")) {
const [name, path] = icon.split("?path=");
icon = Qt.resolvedUrl(`${path}/${name.slice(name.lastIndexOf("/") + 1)}`);
}
return icon;
}
}