Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Hyprland workspaces do not work if workspace rules are specified #540

Closed
levnikmyskin opened this issue Aug 11, 2024 · 0 comments
Closed

Comments

@levnikmyskin
Copy link

As per title, if workspace rules are specified in the hyprland config, ags reports the following errors:

(com.github.Aylur.ags:16103): Gjs-CRITICAL **: 12:05:27.880: JS ERROR: TypeError: wsRules[currentMonitorName] is undefined
getWorkspacesForMonitor@file:///tmp/ags/hyprpanel/main.js:2010:5
Workspaces/<.component<.children</<@file:///tmp/ags/hyprpanel/main.js:2099:18
Workspaces/<.component<.children<@file:///tmp/ags/hyprpanel/main.js:2094:41
update@resource:///com/github/Aylur/ags/utils/binding.js:4:28
merge@resource:///com/github/Aylur/ags/utils/binding.js:5:34
Workspaces@file:///tmp/ags/hyprpanel/main.js:2093:23
workspaces@file:///tmp/ags/hyprpanel/main.js:2664:39
Bar/setup/</self2.children<@file:///tmp/ags/hyprpanel/main.js:2693:120
Bar/setup/<@file:///tmp/ags/hyprpanel/main.js:2693:100
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

Everything seems to work as expected if the rules are removed. For reference, my rule is the following:

workspace = 2,gapsin:0,gapsout:2,rounding:false,shadow:true,bordersize:1
@Aylur Aylur mentioned this issue Sep 25, 2024
Merged
@Aylur Aylur closed this as not planned Won't fix, can't repro, duplicate, stale Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants