Skip to content

workspaces_follow_focus ​

Make non-visible workspaces follow the focused monitor. Also provides commands to switch between workspaces while preserving the current monitor assignments:

Syntax:

toml
[workspaces_follow_focus]
max_workspaces = 4 # number of workspaces before cycling

Example usage in hyprland.lua:

lua
hl.bind(mainMod .. " + K", hl.dsp.exec_cmd(pypr .. " change_workspace +1"))
hl.bind(mainMod .. " + J", hl.dsp.exec_cmd(pypr .. " change_workspace -1"))

Commands ​

Loading commands...

Configuration ​

Loading configuration...