dots-hyprland icon indicating copy to clipboard operation
dots-hyprland copied to clipboard

automatically guess icons for overview

Open mon3stera opened this issue 1 year ago • 5 comments

now overview also uses icon guessing, firstly looking based on the app name and secondly path searching.

mon3stera avatar Apr 19 '24 05:04 mon3stera

ugh does it work? examples? i mean i know it's the same code you had before but i realized turning the guessing on breaks my pinned stuff on dock lol

end-4 avatar Apr 20 '24 09:04 end-4

i tried it and ags dont even work giving errors like no modules named overview_hyprland eventthough i copied them

PharmaRacist avatar Apr 20 '24 11:04 PharmaRacist

i tried it and ags dont even work giving errors like no modules named overview_hyprland eventthough i copied them

humm, what's your terminal output?

mon3stera avatar Apr 20 '24 11:04 mon3stera

ags Another system tray is already running Gjs-Console-Message: 23:00:47.117: [LOG] Styles loaded

(com.github.Aylur.ags:7662): Gjs-WARNING **: 23:00:47.524: JS ERROR: ReferenceError: icon_files is not defined PinnedApps/<.children<@file:///home/end-4/.config/ags/modules/dock/dock.js:195:1 PinnedApps@file:///home/end-4/.config/ags/modules/dock/dock.js:191:10 default@file:///home/end-4/.config/ags/modules/dock/dock.js:228:13 default@file:///home/end-4/.config/ags/modules/dock/main.js:11:12 forMonitors@file:///home/end-4/.config/ags/config.js:28:24 Windows@file:///home/end-4/.config/ags/config.js:56:32 @file:///home/end-4/.config/ags/config.js:79:14 _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:7662): Gjs-Console-CRITICAL **: 23:00:47.544: Error: There is no window named overview getWindow@resource:///com/github/Aylur/ags/app.js:138:27 update@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:334:26 default/OverviewRow/setup/<@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:377:60 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25 _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:7662): Gjs-CRITICAL **: 23:00:47.544: JS ERROR: TypeError: (intermediate value).getWindow(...) is undefined update@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:334:26 default/OverviewRow/setup/<@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:377:60 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25 _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:7662): Gjs-Console-CRITICAL **: 23:00:47.544: Error: There is no window named overview getWindow@resource:///com/github/Aylur/ags/app.js:138:27 update@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:334:26 default/OverviewRow/setup/<@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:398:39 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25 _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:7662): Gjs-CRITICAL **: 23:00:47.544: JS ERROR: TypeError: (intermediate value).getWindow(...) is undefined update@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:334:26 default/OverviewRow/setup/<@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:398:39 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25 _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:7662): Gjs-Console-CRITICAL **: 23:00:47.545: Error: There is no window named overview getWindow@resource:///com/github/Aylur/ags/app.js:138:27 update@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:334:26 default/OverviewRow/setup/<@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:377:60 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25 _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:7662): Gjs-CRITICAL **: 23:00:47.545: JS ERROR: TypeError: (intermediate value).getWindow(...) is undefined update@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:334:26 default/OverviewRow/setup/<@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:377:60 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25 _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:7662): Gjs-Console-CRITICAL **: 23:00:47.545: Error: There is no window named overview getWindow@resource:///com/github/Aylur/ags/app.js:138:27 update@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:334:26 default/OverviewRow/setup/<@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:398:39 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25 _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:7662): Gjs-CRITICAL **: 23:00:47.545: JS ERROR: TypeError: (intermediate value).getWindow(...) is undefined update@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:334:26 default/OverviewRow/setup/<@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:398:39 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25 _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

PharmaRacist avatar Apr 20 '24 21:04 PharmaRacist

ags Another system tray is already running Gjs-Console-Message: 23:00:47.117: [LOG] Styles loaded

(com.github.Aylur.ags:7662): Gjs-WARNING **: 23:00:47.524: JS ERROR: ReferenceError: icon_files is not defined PinnedApps/<.children<@file:///home/end-4/.config/ags/modules/dock/dock.js:195:1 PinnedApps@file:///home/end-4/.config/ags/modules/dock/dock.js:191:10 default@file:///home/end-4/.config/ags/modules/dock/dock.js:228:13 default@file:///home/end-4/.config/ags/modules/dock/main.js:11:12 forMonitors@file:///home/end-4/.config/ags/config.js:28:24 Windows@file:///home/end-4/.config/ags/config.js:56:32 @file:///home/end-4/.config/ags/config.js:79:14 _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:7662): Gjs-Console-CRITICAL **: 23:00:47.544: Error: There is no window named overview getWindow@resource:///com/github/Aylur/ags/app.js:138:27 update@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:334:26 default/OverviewRow/setup/<@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:377:60 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25 _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:7662): Gjs-CRITICAL **: 23:00:47.544: JS ERROR: TypeError: (intermediate value).getWindow(...) is undefined update@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:334:26 default/OverviewRow/setup/<@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:377:60 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25 _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:7662): Gjs-Console-CRITICAL **: 23:00:47.544: Error: There is no window named overview getWindow@resource:///com/github/Aylur/ags/app.js:138:27 update@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:334:26 default/OverviewRow/setup/<@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:398:39 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25 _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:7662): Gjs-CRITICAL **: 23:00:47.544: JS ERROR: TypeError: (intermediate value).getWindow(...) is undefined update@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:334:26 default/OverviewRow/setup/<@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:398:39 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25 _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:7662): Gjs-Console-CRITICAL **: 23:00:47.545: Error: There is no window named overview getWindow@resource:///com/github/Aylur/ags/app.js:138:27 update@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:334:26 default/OverviewRow/setup/<@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:377:60 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25 _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:7662): Gjs-CRITICAL **: 23:00:47.545: JS ERROR: TypeError: (intermediate value).getWindow(...) is undefined update@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:334:26 default/OverviewRow/setup/<@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:377:60 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25 _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:7662): Gjs-Console-CRITICAL **: 23:00:47.545: Error: There is no window named overview getWindow@resource:///com/github/Aylur/ags/app.js:138:27 update@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:334:26 default/OverviewRow/setup/<@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:398:39 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25 _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

(com.github.Aylur.ags:7662): Gjs-CRITICAL **: 23:00:47.545: JS ERROR: TypeError: (intermediate value).getWindow(...) is undefined update@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:334:26 default/OverviewRow/setup/<@file:///home/end-4/.config/ags/modules/overview/overview_hyprland.js:398:39 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:43:25 _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34

thanks, I realized that I forgot to change the icon source for PinnedApps, since I didn't enable searchPinnedAppIcons so it works fine for me. Maybe I'll choose to remove this configuration

mon3stera avatar Apr 22 '24 04:04 mon3stera