Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make CycleWS support IndependentScreens #650

Open
Vermoot opened this issue Nov 20, 2021 · 2 comments
Open

Make CycleWS support IndependentScreens #650

Vermoot opened this issue Nov 20, 2021 · 2 comments

Comments

@Vermoot
Copy link

Vermoot commented Nov 20, 2021

Using IndependentScreens, I'd like to be able to move across spaces just like with CycleWS's prevWS and nextWS, but only on the current screen's workspaces (using IndependentScreens).

I've seen a couple implementations of this while searching how to do it, but none have been successful for me.

@slotThe
Copy link
Member

slotThe commented Nov 21, 2021

Have you tried using X.A.CycleWorkspaceByScreen? The docs are pretty bad, but what you are supposed to do is something like

import XMonad.Hooks.WorkspaceHistory (workspaceHistoryHook)
import XMonad.Util.EZConfig (additionalKeysP)
import XMonad.Actions.CycleWorkspaceByScreen (cycleWorkspaceOnCurrentScreen)

main = xmonad $ def
  { ...
  , logHook = workspaceHistoryHook >> ...
  , ...
  }
 `additionalKeysP` myKeys


myKeys =
  [ ...
  , ("M-/", cycleWorkspaceOnCurrentScreen [xK_Super_L] xK_slash xK_p)
  , ...
  ]

The semantics the different arguments to cycleWorkspaceOnCurrentScreen seem to be the same as the (helpfully explained) X.A.CycleRecentWS.cycleRecentWS

@Vermoot
Copy link
Author

Vermoot commented Nov 21, 2021

This looks like a step in the right direction but I'd like to move across spaces regardless of the viewing order, just like prevWS and nextWS. From what I see cycleWorkspaceOnCurrentScreen only works to move through the history of seen workscreens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants