diff options
| author | Josh Rahm <rahm@google.com> | 2024-01-29 14:09:33 -0700 |
|---|---|---|
| committer | Josh Rahm <rahm@google.com> | 2024-01-29 14:09:33 -0700 |
| commit | 12335234034a16fce3d324e92030963d3ceacbc1 (patch) | |
| tree | 58e8a006b19f4d6ec095a6d2cc1429efd1c3680b /src/Rahm/Desktop/Keys.hs | |
| parent | bbe7717e629b5a265c967652a946fa7563a747ff (diff) | |
| download | rde-12335234034a16fce3d324e92030963d3ceacbc1.tar.gz rde-12335234034a16fce3d324e92030963d3ceacbc1.tar.bz2 rde-12335234034a16fce3d324e92030963d3ceacbc1.zip | |
Add <M-a> and <S-M-a> to cycle between monitors.
This is more general than it was before. It's quicker than typing its
synonymous equivalent, <M-f>,. as a bonus it's the same on both dvorak
and qwerty keyboards.
Diffstat (limited to 'src/Rahm/Desktop/Keys.hs')
| -rw-r--r-- | src/Rahm/Desktop/Keys.hs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Rahm/Desktop/Keys.hs b/src/Rahm/Desktop/Keys.hs index b84a586..d55c3bc 100644 --- a/src/Rahm/Desktop/Keys.hs +++ b/src/Rahm/Desktop/Keys.hs @@ -154,6 +154,7 @@ import XMonad.Layout.Spacing import XMonad.Util.Run (safeSpawn) import XMonad.Util.WindowProperties import Prelude hiding ((!!)) +import Graphics.X11.XScreenSaver (XScreenSaverState(ScreenSaverCycle)) type KeyMap l = XConfig l -> Map (KeyMask, KeySym) (X ()) @@ -373,6 +374,22 @@ bindings = do ws <- readNextWorkspaceName lift $ windows $ W.view ws + bind xK_a $ do + justMod $ + doc "Cycle focus forward through the screens. (Synonymous with f,.)" $ do + runMaybeT_ $ do + ws' <- workspaceForStringT ",." + ws <- MaybeT . return $ workspaceName ws' + lift $ windows $ W.view ws + + shiftMod $ + doc "Cycle focus backward through the screens. (Synonymous with f;.)" $ do + runMaybeT_ $ do + ws' <- workspaceForStringT ";." + ws <- MaybeT . return $ workspaceName ws' + lift $ windows $ W.view ws + + bind xK_g $ do justMod $ doc |