diff options
| author | Josh Rahm <joshuarahm@gmail.com> | 2022-04-24 20:47:40 -0600 |
|---|---|---|
| committer | Josh Rahm <joshuarahm@gmail.com> | 2022-10-09 12:19:46 -0600 |
| commit | 6eb4bd53a098bf5645f8eda13db1243ffc1df088 (patch) | |
| tree | dfec036196f7acbce683f754bc0248757133bbb8 /src/Rahm/Desktop/ScreenRotate.hs | |
| parent | 8e2cb3d0e92dd8c09233705471f87d4d582eedfe (diff) | |
| download | rde-6eb4bd53a098bf5645f8eda13db1243ffc1df088.tar.gz rde-6eb4bd53a098bf5645f8eda13db1243ffc1df088.tar.bz2 rde-6eb4bd53a098bf5645f8eda13db1243ffc1df088.zip | |
Roll ScreenRotate into StackSet
Diffstat (limited to 'src/Rahm/Desktop/ScreenRotate.hs')
| -rw-r--r-- | src/Rahm/Desktop/ScreenRotate.hs | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/Rahm/Desktop/ScreenRotate.hs b/src/Rahm/Desktop/ScreenRotate.hs deleted file mode 100644 index 718976d..0000000 --- a/src/Rahm/Desktop/ScreenRotate.hs +++ /dev/null @@ -1,19 +0,0 @@ -module Rahm.Desktop.ScreenRotate where - -import Rahm.Desktop.StackSet as W - -screenRotateBackward :: W.StackSet i l a sid sd -> W.StackSet i l a sid sd -screenRotateBackward (W.StackSet current visible others floating) = do - let screens = current : visible - workspaces = tail $ cycle $ map W.workspace screens - (current':visible') = zipWith (\s w -> s {workspace = w} ) screens workspaces - in W.StackSet current' visible' others floating - -screenRotateForward :: W.StackSet i l a sid sd -> W.StackSet i l a sid sd -screenRotateForward (W.StackSet current visible others floating) = do - let screens = current : visible - workspaces = rcycle $ map W.workspace screens - (current':visible') = zipWith (\s w -> s {workspace = w} ) screens workspaces - in W.StackSet current' visible' others floating - - where rcycle l = last l : l |