hl.get_active_monitor() returns nil #14878
Replies: 1 comment 3 replies
-
|
can you show the config or do you expect me to read minds? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
In my
hyprland.luafile, calling the functionhl.get_active_monitor()returnsnilwhen hyprland starts causing some key bindings to fail.Once Hyprland is running, I can open a terminal and call
hyprctl reload. Now the functionhl.get_active_monitor()returns a non-nil value and all key binds are correct.I'm guessing there is some kind of race condition in that
hl.get_active_monitor()gets called before the variable is set. At what point in thehyprland.luafile is it okay issue a call tohl.get_active_monitor()?Thanks.
Beta Was this translation helpful? Give feedback.
All reactions