aboutsummaryrefslogtreecommitdiff
path: root/src/Main.hs
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2022-04-24 20:34:51 -0600
committerJosh Rahm <joshuarahm@gmail.com>2022-04-24 20:34:51 -0600
commit72414e1732064079719b1f1021dc4badce654903 (patch)
tree0f2bcdf6074b6a8f696c53efb0a83bdd53460275 /src/Main.hs
parent32a394483e5d8f571b27a70f9a7156cae1ed6180 (diff)
downloadrde-72414e1732064079719b1f1021dc4badce654903.tar.gz
rde-72414e1732064079719b1f1021dc4badce654903.tar.bz2
rde-72414e1732064079719b1f1021dc4badce654903.zip
Add R.D.StackSet as a replacement for StackSet.
Diffstat (limited to 'src/Main.hs')
-rw-r--r--src/Main.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Main.hs b/src/Main.hs
index 17f6207..bb39e14 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -26,7 +26,7 @@ import Rahm.Desktop.Hooks.WindowChange
import Rahm.Desktop.History
import qualified XMonad as X
-import qualified XMonad.StackSet as W
+import qualified Rahm.Desktop.StackSet as W
main = do
putStrLn "Welcome To RDE!"
@@ -39,6 +39,7 @@ main = do
setEnv "ROFI" menuCommandString
xmobar <- spawnXMobar
+ count <- fromIntegral . screenCount <$> openDisplay ""
(=<<) X.xmonad $
applyKeys $ withLocationChangeHook historyHook $ ewmh $ docks $ def
@@ -68,7 +69,7 @@ main = do
-- with something. However, this configuration only supports 36
-- monitors on boot. If you need more than 36 monitors, you'll have to
-- configure those ones after starting XMonad.
- , workspaces = map return (['0'..'9'] ++ ['a'..'z'])
+ , workspaces = map return (take count $ ['0'..'9'] ++ ['a'..'z'])
, handleEventHook =
composeAll [
fullscreenEventHook,