updated a few apps + made tray being able to change icon with 10s timer

This commit is contained in:
Hannes
2026-03-01 16:13:15 +01:00
parent 8bb4c2a497
commit 0bfc7161d8
2 changed files with 38 additions and 8 deletions
+2 -1
View File
@@ -18,7 +18,7 @@ declare -A MAP=(
["brave-browser"]="" ["brave-browser"]=""
["chromium"]="" ["chromium"]=""
# E-Mail # E-Mail
["Mozilla Thunderbird"]="󰇮" ["org.mozilla.Thunderbird"]="󰇮"
# Terminals # Terminals
["kitty"]="" ["kitty"]=""
["Alacritty"]="" ["Alacritty"]=""
@@ -62,6 +62,7 @@ declare -A MAP=(
["Carla"]="󱡫" ["Carla"]="󱡫"
# Video # Video
["com.obsproject.Studio"]="󰨜" ["com.obsproject.Studio"]="󰨜"
["hyprland-share-picker"]="󱎴"
# Document Editor/Viewer # Document Editor/Viewer
["libreoffice-startcenter"]="" ["libreoffice-startcenter"]=""
["libreoffice-base"]="" ["libreoffice-base"]=""
+36 -7
View File
@@ -89,10 +89,43 @@ Row { // Workspace Row
width: bar.height*0.5 width: bar.height*0.5
height: bar.height*0.5 height: bar.height*0.5
Component.onCompleted: { // Component.onCompleted: {
// Default to the original icon // // Default to the original icon
let src = modelData.icon; // let src = modelData.icon;
// // console.log("########## icon: " + modelData.icon)
// // Check if there is a "?" in the URL (custom path)
// if (src.includes('goxlr')) {
// let pathMatch = src.match(/path=([^&]+)/);
// if (pathMatch && pathMatch[1]) {
// let folderPath = pathMatch[1];
// // Build a file:// URL pointing to the actual icon file
// let segments = folderPath.split('/');
// let fileName = segments[segments.length - 1] + "-icon.png";
// console.log("########## filename: " + fileName)
// console.log("########## icon: " + modelData.icon) // console.log("########## icon: " + modelData.icon)
// src = "file://" + pathMatch[1] + "/" + fileName;
// }
// }
// // Set the resolved source
// iconImage.source = src;
// // console.log("Resolved icon source:", src);
// }
asynchronous: true
cache: true
}
Timer {
interval: 10000
running: true
repeat: true
triggeredOnStart: true
onTriggered: {
let src = modelData.icon;
console.log("########## icon: " + modelData.icon)
// Check if there is a "?" in the URL (custom path) // Check if there is a "?" in the URL (custom path)
if (src.includes('goxlr')) { if (src.includes('goxlr')) {
@@ -111,11 +144,7 @@ Row { // Workspace Row
// Set the resolved source // Set the resolved source
iconImage.source = src; iconImage.source = src;
// console.log("Resolved icon source:", src);
} }
asynchronous: true
cache: true
} }
} }
} }