Hi,
I have just moved over from my .conf to a .lua file as 0.57 approaches. There are a couple of things I have noticed which seem to be different/ not working.
Auto started apps grab focus and switch workspace:
When starting Hyprland I would like to start certain apps in the background automatically i.e. Steam. In the .conf I have applied a window_rule to control this behavior as following:
windowrule {
name = move-steam
match:initial_class = steam
workspace = 3
no_initial_focus = on
}
This puts steam on workspace 3 but keeps my initial workspace on 1 which is opened by default (see next issue for a problem with that, too). With going to .lua I have translated this into the following:
hl.window_rule({
name = "move-steam",
match = {
initial_class = "steam"
},
workspace = 3,
no_initial_focus = on
})
Using this I have noticed that the workspace automatically jumps to workspace 3 once Steam loads. I have tried replacing no_initial_focus = on with no_focus = on but the behavior is the same.
Initial workspace after starting Hyprland:
With the above rules in place Hyprland would ideally open up workspace 1 after startup. Even though it’s empty. However, it does not dreate an empy workspace 1 on my primary (left) monitor. With the above rules in place it just jumps to the workspaces stated in the rules from above.
Binds (with multiple modifiers) acting weird:
Binds seem to be acting wonky, although I believe there is a change to be implemented in 0.57. However, running hl.bind(mainMod .. " CONTROL + SHIFT + C", hl.dsp.window.close()) with local mainMod = "SUPER" does not close the focused window.
Using a hl.bind(mainMod .. " ALT + C", hl.dsp.window.close()) does work though.
So either two modifier keys in a keybind is the problem or it is something else acting strangely.
Clicking on workspaces in waybar does not switch
When clicking on a workspace number in waybar, Hyprland does not switch to that workspace. Worked flawlessly before using .lua format.
Thank you for anybody looking into this.