Skip to content

feat: add workspace wrapping logic for focus and move commands#1382

Open
cap153 wants to merge 1 commit into
glzr-io:mainfrom
cap153:feat/workspace-wrap
Open

feat: add workspace wrapping logic for focus and move commands#1382
cap153 wants to merge 1 commit into
glzr-io:mainfrom
cap153:feat/workspace-wrap

Conversation

@cap153

@cap153 cap153 commented May 5, 2026

Copy link
Copy Markdown
  • Added --direction-workspace-wrap to focus commands to allow switching to adjacent workspaces when reaching monitor edges.
  • Added --direction-workspace-wrap to move commands for moving windows across workspace boundaries.
  • Added --direction-workspace-wrap-focus to move commands to support window movement with focus following.
  • Implemented core logic in new dedicated command files for better maintainability.
  • Updated CLI argument parsing in wm-common to support independent wrapping parameters.

Example configuration:

# Suggested keybindings for your config.yaml
keybindings:
  - commands: ['focus --direction-workspace-wrap left']
    bindings: ['alt+h']
  - commands: ['focus --direction-workspace-wrap right']
    bindings: ['alt+l']
  - commands: ['move --direction-workspace-wrap-focus left']
    bindings: ['alt+shift+h']
  - commands: ['move --direction-workspace-wrap-focus right']
    bindings: ['alt+shift+l']

I haven't updated the README yet, feel free to let me know if I should add these there.

Related Issues

- Added `--direction-workspace-wrap` to focus commands to allow
switching
  to adjacent workspaces when reaching monitor edges.
- Added `--direction-workspace-wrap` to move commands for moving windows
  across workspace boundaries.
- Added `--direction-workspace-wrap-focus` to move commands to support
  window movement with focus following.
- Implemented core logic in new dedicated command files for better
  maintainability.
- Updated CLI argument parsing in wm-common to support independent
  wrapping parameters.
@github-project-automation github-project-automation Bot moved this to 📬 Needs triage in glazewm May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 📬 Needs triage

Development

Successfully merging this pull request may close these issues.

[Feature Request] Disable focus and window movement crossing monitors

1 participant