Closed ogios closed 9 months ago
the old version of ags config works but blocks the top of the window i don't know why:
const OverviewRow = ({ startWorkspace, workspaces, windowName = 'overview' }) => Widget.Box({
children: arr(startWorkspace, workspaces).map(workspace),
properties: [['update', box => {
execAsync('hyprctl -j clients').then(clients => {
const json = JSON.parse(clients);
box.get_children().forEach(ch => ch.update(json));
}).catch(print);
}]],
setup: (box) => box._update(box),
connections: [
[Hyprland, box => { if (!App.getWindow(windowName).visible) return; box._update(box); }, 'client-added'],
[Hyprland, box => { if (!App.getWindow(windowName).visible) return; box._update(box); }, 'client-removed'],
[App, (box, name, visible) => { // Update on open
if (name == 'overview' && visible) {
box._update(box);
}
}],
],
});
c96f8ec
no longer works normally with current config of this repo. Try install ags by running ./update-ags.sh
.
I have read the instructions
The issue
Click to expand
i've installed the ags suggested in here: https://github.com/end-4/dots-hyprland/issues/208#issuecomment-1913120250 but this still happens ```plain (com.github.Aylur.ags:12542): Gjs-WARNING **: 09:31:28.272: Unhandled promise rejection. To suppress this warning, add an error handler to your promise chain with .catch() or a try-catch block around your await expression. Stack trace of the failed promise: _init/GLib.MainLoop.prototype.runAsync/<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34 Gjs-Console-Message: 09:31:28.446: [LOG] Styles loaded (com.github.Aylur.ags:12542): Gjs-WARNING **: 09:31:28.450: JS ERROR: Error: No property keymode on Ags_AgsWindow _init/Gtk.Widget.prototype._init@resource:///org/gnome/gjs/modules/core/overrides/Gtk.js:59:50 _init@resource:///com/github/Aylur/ags/widgets/widget.js:126:19 AgsWidget@resource:///com/github/Aylur/ags/widgets/widget.js:88:12 AgsWindow@resource:///com/github/Aylur/ags/widgets/window.js:38:9 createCtor/<@resource:///com/github/Aylur/ags/widget.js:23:16 default@file:///home/ogios/.config/ags/widgets/overview/main.js:4:29 Windows@file:///home/ogios/.config/ags/config.js:39:5 @file:///home/ogios/.config/ags/config.js:63:14 _init/GLib.MainLoop.prototype.runAsync/<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34 Gjs-Console-Message: 09:31:28.454: App { "bus": "com.github.Aylur.ags.ags", "configDir": "/home/ogios/.config/ags", "windows": {} } (com.github.Aylur.ags:12542): Gjs-Console-CRITICAL **: 09:31:28.455: Error: There is no window named overview getWindow@resource:///com/github/Aylur/ags/app.js:101:27 update@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:289:18 OverviewRow/setup/<@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:328:65 hook/id<@resource:///com/github/Aylur/ags/widgets/widget.js:50:21 _syncMonitors/<@resource:///com/github/Aylur/ags/service/hyprland.js:153:44 _syncMonitors@resource:///com/github/Aylur/ags/service/hyprland.js:146:29 async*Hyprland@resource:///com/github/Aylur/ags/service/hyprland.js:105:14 @resource:///com/github/Aylur/ags/service/hyprland.js:286:25 _init/GLib.MainLoop.prototype.runAsync/<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34 (com.github.Aylur.ags:12542): Gjs-CRITICAL **: 09:31:28.456: JS ERROR: TypeError: (intermediate value).getWindow(...) is undefined update@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:289:18 OverviewRow/setup/<@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:328:65 hook/id<@resource:///com/github/Aylur/ags/widgets/widget.js:50:21 _syncMonitors/<@resource:///com/github/Aylur/ags/service/hyprland.js:153:44 _syncMonitors@resource:///com/github/Aylur/ags/service/hyprland.js:146:29 async*Hyprland@resource:///com/github/Aylur/ags/service/hyprland.js:105:14 @resource:///com/github/Aylur/ags/service/hyprland.js:286:25 _init/GLib.MainLoop.prototype.runAsync/<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34 Gjs-Console-Message: 09:31:28.456: App { "bus": "com.github.Aylur.ags.ags", "configDir": "/home/ogios/.config/ags", "windows": {} } (com.github.Aylur.ags:12542): Gjs-Console-CRITICAL **: 09:31:28.456: Error: There is no window named overview getWindow@resource:///com/github/Aylur/ags/app.js:101:27 update@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:289:18 OverviewRow/setup/<@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:328:65 hook/id<@resource:///com/github/Aylur/ags/widgets/widget.js:50:21 _syncMonitors/<@resource:///com/github/Aylur/ags/service/hyprland.js:153:44 _syncMonitors@resource:///com/github/Aylur/ags/service/hyprland.js:146:29 async*Hyprland@resource:///com/github/Aylur/ags/service/hyprland.js:105:14 @resource:///com/github/Aylur/ags/service/hyprland.js:286:25 _init/GLib.MainLoop.prototype.runAsync/<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34 (com.github.Aylur.ags:12542): Gjs-CRITICAL **: 09:31:28.457: JS ERROR: TypeError: (intermediate value).getWindow(...) is undefined update@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:289:18 OverviewRow/setup/<@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:328:65 hook/id<@resource:///com/github/Aylur/ags/widgets/widget.js:50:21 _syncMonitors/<@resource:///com/github/Aylur/ags/service/hyprland.js:153:44 _syncMonitors@resource:///com/github/Aylur/ags/service/hyprland.js:146:29 async*Hyprland@resource:///com/github/Aylur/ags/service/hyprland.js:105:14 @resource:///com/github/Aylur/ags/service/hyprland.js:286:25 _init/GLib.MainLoop.prototype.runAsync/<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34 Gjs-Console-Message: 09:31:28.487: App { "bus": "com.github.Aylur.ags.ags", "configDir": "/home/ogios/.config/ags", "windows": {} } (com.github.Aylur.ags:12542): Gjs-Console-CRITICAL **: 09:31:28.488: Error: There is no window named overview getWindow@resource:///com/github/Aylur/ags/app.js:101:27 update@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:289:18 OverviewRow/setup/<@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:313:52 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:58:25 _init/GLib.MainLoop.prototype.runAsync/<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34 (com.github.Aylur.ags:12542): Gjs-CRITICAL **: 09:31:28.488: JS ERROR: TypeError: (intermediate value).getWindow(...) is undefined update@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:289:18 OverviewRow/setup/<@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:313:52 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:58:25 _init/GLib.MainLoop.prototype.runAsync/<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34 Gjs-Console-Message: 09:31:28.488: App { "bus": "com.github.Aylur.ags.ags", "configDir": "/home/ogios/.config/ags", "windows": {} } (com.github.Aylur.ags:12542): Gjs-Console-CRITICAL **: 09:31:28.488: Error: There is no window named overview getWindow@resource:///com/github/Aylur/ags/app.js:101:27 update@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:289:18 OverviewRow/setup/<@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:317:27 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:58:25 _init/GLib.MainLoop.prototype.runAsync/<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34 (com.github.Aylur.ags:12542): Gjs-CRITICAL **: 09:31:28.488: JS ERROR: TypeError: (intermediate value).getWindow(...) is undefined update@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:289:18 OverviewRow/setup/<@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:317:27 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:58:25 _init/GLib.MainLoop.prototype.runAsync/<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34 Gjs-Console-Message: 09:31:28.488: App { "bus": "com.github.Aylur.ags.ags", "configDir": "/home/ogios/.config/ags", "windows": {} } (com.github.Aylur.ags:12542): Gjs-Console-CRITICAL **: 09:31:28.488: Error: There is no window named overview getWindow@resource:///com/github/Aylur/ags/app.js:101:27 update@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:289:18 OverviewRow/setup/<@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:324:27 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:58:25 _init/GLib.MainLoop.prototype.runAsync/<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34 (com.github.Aylur.ags:12542): Gjs-CRITICAL **: 09:31:28.488: JS ERROR: TypeError: (intermediate value).getWindow(...) is undefined update@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:289:18 OverviewRow/setup/<@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:324:27 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:58:25 _init/GLib.MainLoop.prototype.runAsync/<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34 Gjs-Console-Message: 09:31:28.488: App { "bus": "com.github.Aylur.ags.ags", "configDir": "/home/ogios/.config/ags", "windows": {} } (com.github.Aylur.ags:12542): Gjs-Console-CRITICAL **: 09:31:28.488: Error: There is no window named overview getWindow@resource:///com/github/Aylur/ags/app.js:101:27 update@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:289:18 OverviewRow/setup/<@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:328:65 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:58:25 _init/GLib.MainLoop.prototype.runAsync/<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34 (com.github.Aylur.ags:12542): Gjs-CRITICAL **: 09:31:28.488: JS ERROR: TypeError: (intermediate value).getWindow(...) is undefined update@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:289:18 OverviewRow/setup/<@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:328:65 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:58:25 _init/GLib.MainLoop.prototype.runAsync/<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34 Gjs-Console-Message: 09:31:28.488: App { "bus": "com.github.Aylur.ags.ags", "configDir": "/home/ogios/.config/ags", "windows": {} } (com.github.Aylur.ags:12542): Gjs-Console-CRITICAL **: 09:31:28.489: Error: There is no window named overview getWindow@resource:///com/github/Aylur/ags/app.js:101:27 update@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:289:18 OverviewRow/setup/<@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:313:52 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:58:25 _init/GLib.MainLoop.prototype.runAsync/<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34 (com.github.Aylur.ags:12542): Gjs-CRITICAL **: 09:31:28.489: JS ERROR: TypeError: (intermediate value).getWindow(...) is undefined update@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:289:18 OverviewRow/setup/<@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:313:52 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:58:25 _init/GLib.MainLoop.prototype.runAsync/<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34 Gjs-Console-Message: 09:31:28.489: App { "bus": "com.github.Aylur.ags.ags", "configDir": "/home/ogios/.config/ags", "windows": {} } (com.github.Aylur.ags:12542): Gjs-Console-CRITICAL **: 09:31:28.489: Error: There is no window named overview getWindow@resource:///com/github/Aylur/ags/app.js:101:27 update@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:289:18 OverviewRow/setup/<@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:317:27 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:58:25 _init/GLib.MainLoop.prototype.runAsync/<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34 (com.github.Aylur.ags:12542): Gjs-CRITICAL **: 09:31:28.489: JS ERROR: TypeError: (intermediate value).getWindow(...) is undefined update@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:289:18 OverviewRow/setup/<@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:317:27 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:58:25 _init/GLib.MainLoop.prototype.runAsync/<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34 Gjs-Console-Message: 09:31:28.489: App { "bus": "com.github.Aylur.ags.ags", "configDir": "/home/ogios/.config/ags", "windows": {} } (com.github.Aylur.ags:12542): Gjs-Console-CRITICAL **: 09:31:28.489: Error: There is no window named overview getWindow@resource:///com/github/Aylur/ags/app.js:101:27 update@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:289:18 OverviewRow/setup/<@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:324:27 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:58:25 _init/GLib.MainLoop.prototype.runAsync/<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34 (com.github.Aylur.ags:12542): Gjs-CRITICAL **: 09:31:28.489: JS ERROR: TypeError: (intermediate value).getWindow(...) is undefined update@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:289:18 OverviewRow/setup/<@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:324:27 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:58:25 _init/GLib.MainLoop.prototype.runAsync/<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34 Gjs-Console-Message: 09:31:28.489: App { "bus": "com.github.Aylur.ags.ags", "configDir": "/home/ogios/.config/ags", "windows": {} } (com.github.Aylur.ags:12542): Gjs-Console-CRITICAL **: 09:31:28.489: Error: There is no window named overview getWindow@resource:///com/github/Aylur/ags/app.js:101:27 update@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:289:18 OverviewRow/setup/<@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:328:65 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:58:25 _init/GLib.MainLoop.prototype.runAsync/<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34 (com.github.Aylur.ags:12542): Gjs-CRITICAL **: 09:31:28.489: JS ERROR: TypeError: (intermediate value).getWindow(...) is undefined update@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:289:18 OverviewRow/setup/<@file:///home/ogios/.config/ags/widgets/overview/overview_hyprland.js:328:65 hook/<@resource:///com/github/Aylur/ags/widgets/widget.js:58:25 _init/GLib.MainLoop.prototype.runAsync/<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34 ```