Skip to content

workspaces_follow_focus

fdev31 edited this page May 18, 2024 · 6 revisions

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

Syntax:

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

Example usage in hyprland.conf:

bind = $mainMod, K, exec, pypr change_workspace +1
bind = $mainMod, J, exec, pypr change_workspace -1

Command

  • change_workspace <direction>: changes the workspace of the focused monitor

Configuration

max_workspaces

Limits the number of workspaces when switching, defaults value is 10.