diff options
| author | Josh Rahm <rahm@google.com> | 2022-04-14 23:09:50 -0600 |
|---|---|---|
| committer | Josh Rahm <rahm@google.com> | 2022-04-14 23:09:50 -0600 |
| commit | a14486b47a51e772a3b230bc82390cb667f2ecd5 (patch) | |
| tree | 1d95cc48e15cef992dc0ef217b6dd64cc3572347 /src/Rahm/Desktop/Keys.hs | |
| parent | 643642e5e76fd5278a26f560dca60e5b18ac8933 (diff) | |
| download | rde-a14486b47a51e772a3b230bc82390cb667f2ecd5.tar.gz rde-a14486b47a51e772a3b230bc82390cb667f2ecd5.tar.bz2 rde-a14486b47a51e772a3b230bc82390cb667f2ecd5.zip | |
Some changes to marking
Diffstat (limited to 'src/Rahm/Desktop/Keys.hs')
| -rw-r--r-- | src/Rahm/Desktop/Keys.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Rahm/Desktop/Keys.hs b/src/Rahm/Desktop/Keys.hs index fec7ce5..d302b59 100644 --- a/src/Rahm/Desktop/Keys.hs +++ b/src/Rahm/Desktop/Keys.hs @@ -150,6 +150,15 @@ keymap = runKeys $ do _ -> return () shiftMod $ + doc "Move the marked windo to the current workspace." $ + mapNextString $ \_ str -> + case str of + [ch] | isAlphaNum ch -> do + ws <- getCurrentWorkspace + maybe (return ()) (windows . W.shiftWin ws) =<< markToWindow ch + _ -> return () + + controlMod $ doc "Swap the current window with a mark." $ mapNextString $ \_ str -> case str of |