aboutsummaryrefslogtreecommitdiff
path: root/src/Internal/ScreenRotate.hs
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2022-04-10 13:26:16 -0600
committerJosh Rahm <joshuarahm@gmail.com>2022-10-09 12:19:46 -0600
commita652c330707e2e9bbe963e01af79ce730cf3452e (patch)
tree047655195f50efcbd51db8f825acf589dc6abead /src/Internal/ScreenRotate.hs
parent381a3e5a00813314249bb74b5460f5ff5a4006bb (diff)
downloadrde-a652c330707e2e9bbe963e01af79ce730cf3452e.tar.gz
rde-a652c330707e2e9bbe963e01af79ce730cf3452e.tar.bz2
rde-a652c330707e2e9bbe963e01af79ce730cf3452e.zip
Rename Internal to Rahm.Desktop
Diffstat (limited to 'src/Internal/ScreenRotate.hs')
-rw-r--r--src/Internal/ScreenRotate.hs19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/Internal/ScreenRotate.hs b/src/Internal/ScreenRotate.hs
deleted file mode 100644
index 8108381..0000000
--- a/src/Internal/ScreenRotate.hs
+++ /dev/null
@@ -1,19 +0,0 @@
-module Internal.ScreenRotate where
-
-import XMonad.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