diff options
| author | Josh Rahm <rahm@google.com> | 2021-11-23 12:32:00 -0700 |
|---|---|---|
| committer | Josh Rahm <joshuarahm@gmail.com> | 2022-10-09 12:19:45 -0600 |
| commit | 1cb68e4c242a945896617a5d03c53117ab28fb53 (patch) | |
| tree | fa262f2344ef0567f4f9706dd20d006b336f2a12 /src/Internal/Lib.hs | |
| parent | 14cec81b47355893fa67ec6a0ffbbdd1de55cdae (diff) | |
| download | rde-1cb68e4c242a945896617a5d03c53117ab28fb53.tar.gz rde-1cb68e4c242a945896617a5d03c53117ab28fb53.tar.bz2 rde-1cb68e4c242a945896617a5d03c53117ab28fb53.zip | |
Added ability to submap based on the lookupString.
This changes how workspaces work. There are now as many workspaces as
there are AlphaNumeric characters. I'm not really sure how I like it,
but it's interesting. I'll keep it for a bit and see how I like it.
Diffstat (limited to 'src/Internal/Lib.hs')
| -rw-r--r-- | src/Internal/Lib.hs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Internal/Lib.hs b/src/Internal/Lib.hs index 1a1d602..c3bdeb9 100644 --- a/src/Internal/Lib.hs +++ b/src/Internal/Lib.hs @@ -3,6 +3,7 @@ module Internal.Lib where import Prelude hiding ((!!)) +import XMonad.Actions.DynamicWorkspaces import XMonad.Util.Run import XMonad.Prompt import XMonad.Prompt.Input @@ -67,13 +68,17 @@ getHorizontallyOrderedScreens windowSet = gotoWorkspace :: WorkspaceName -> X () gotoWorkspace ch = do saveLastMark + addHiddenWorkspace [ch] windows $ greedyView $ return ch shiftToWorkspace :: WorkspaceName -> X () -shiftToWorkspace = windows . shift . return +shiftToWorkspace ch = do + addHiddenWorkspace [ch] + (windows . shift . return) ch swapWorkspace :: WorkspaceName -> X () swapWorkspace toWorkspaceName = do + addHiddenWorkspace [toWorkspaceName] windows $ \ss -> do let fromWorkspace = tag $ workspace $ current ss toWorkspace = [toWorkspaceName] in |