1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-13 00:42:49 -05:00

hyprland: use raw events to determine window position updates

This commit is contained in:
bbedward
2025-11-09 12:11:22 -05:00
parent 392a1c03c5
commit caa085a646
6 changed files with 61 additions and 136 deletions

View File

@@ -32,11 +32,9 @@ Singleton {
}
for (const appId of appIds){
let icon = Quickshell.iconPath(entry?.icon, true)
console.log(icon)
if (icon && icon !== "") return icon
let execPath = entry?.execString?.replace(/\/bin.*/, "")
console.log(execPath)
if (!execPath) continue
//Check that the app is installed with nix/guix
@@ -46,13 +44,11 @@ Singleton {
let iconPath = `${basePath}/share/icons/hicolor/scalable/apps/${appId}.svg`
icon = Quickshell.iconPath(iconPath, true)
console.log(icon)
if (icon && icon !== "") return icon
for (const size of sizes) {
iconPath = `${basePath}/share/icons/hicolor/${size}/apps/${appId}.png`
icon = Quickshell.iconPath(iconPath, true)
console.log(icon)
if (icon && icon !== "") return icon
}
}