about summary refs log tree commit diff
path: root/dotfiles/xmonad.hs
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-07-06 21:08:36 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-07-06 21:10:04 +0200
commit23b411d8ab5bb79bcc79f1f1263d5c00e54a237e (patch)
treedf342f55d2d445c7a2bfdd65feeaf2572bf47e69 /dotfiles/xmonad.hs
parentXMonad: Remove unnecessary imports (diff)
downloadnixos-config-23b411d8ab5bb79bcc79f1f1263d5c00e54a237e.tar.gz
nixos-config-23b411d8ab5bb79bcc79f1f1263d5c00e54a237e.tar.bz2
nixos-config-23b411d8ab5bb79bcc79f1f1263d5c00e54a237e.zip
fmt
Diffstat (limited to '')
-rw-r--r--dotfiles/xmonad.hs6
1 files changed, 2 insertions, 4 deletions
diff --git a/dotfiles/xmonad.hs b/dotfiles/xmonad.hs
index b61621c..b4a828c 100644
--- a/dotfiles/xmonad.hs
+++ b/dotfiles/xmonad.hs
@@ -107,7 +107,7 @@ setFullscreenProp b win = withDisplay $ \dpy -> do
                         else io $ changeProperty32 dpy win state 4 propModeReplace []
 
 --Hide xmobar -> Hide borders -> Set fullscreen -> Set fullscreenprops
-toggleFullScreen :: X()
+toggleFullScreen :: X ()
 toggleFullScreen = do
                     mIsFullScreen <- withWindowSet (isToggleActive NBFULL . W.workspace . W.current)
                     case mIsFullScreen of
@@ -189,9 +189,6 @@ myMouseBindings (XConfig {XMonad.modMask = modMask}) = M.fromList $
 -- Run xmonad with all the defaults we set up.
 --
 
-getNumberOfWindowsInWorkpace :: X Int
-getNumberOfWindowsInWorkpace = withWindowSet (pure . length . W.index)
-
 myStatusBar = statusBarProp "xmobar" (do 
                                         numWindows <- getNumberOfWindowsInWorkpace
                                         return $ xmobarPP {
@@ -206,6 +203,7 @@ myStatusBar = statusBarProp "xmobar" (do
                                           }
                                       )
                                       where
+                                        getNumberOfWindowsInWorkpace = withWindowSet (pure . length . W.index)
                                         createDwmBox color prefix = "<box type=HBoth offset=L19 color="++color++"><box type=Top mt=3 color="++color++"><box type=Top color="++color++">" ++ prefix ++ "</box></box></box>"
 
 main :: IO ()