dots-hyprland
dots-hyprland copied to clipboard
automatically guess icons for overview
now overview also uses icon guessing, firstly looking based on the app name and secondly path searching.
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
i tried it and ags dont even work giving errors like no modules named overview_hyprland eventthough i copied them
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?
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
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