about summary refs log tree commit diff
path: root/src/XMonad/Custom/Log.hs
diff options
context:
space:
mode:
authorazahi <azahi@teknik.io>2018-10-03 14:30:31 +0300
committerazahi <azahi@teknik.io>2018-10-03 14:30:31 +0300
commit7e19bd16b48bd009a3b4d0f029c445bb49d95615 (patch)
treeff4fc89baaef3a684294463e18569fd56996f3bd /src/XMonad/Custom/Log.hs
parentRelease 0.2.1.1 (diff)
Move to 0.15
Fix windows not showing with fullscreen hooks
Add misc directory with stuff that should be moved to ~/.xmonad
Switch indentation style
Add submodules
Diffstat (limited to 'src/XMonad/Custom/Log.hs')
-rw-r--r--src/XMonad/Custom/Log.hs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/XMonad/Custom/Log.hs b/src/XMonad/Custom/Log.hs
index 1bf05f1..4102f6f 100644
--- a/src/XMonad/Custom/Log.hs
+++ b/src/XMonad/Custom/Log.hs
@@ -1,3 +1,5 @@
+{-# LANGUAGE LambdaCase #-}
+
 -----------------------------------------------------------------------------
 -- |
 -- Module      :  XMonad.Custom.Log
@@ -42,10 +44,9 @@ topBarPP = def
     , ppWsSep           = " "
     , ppTitle           = xmobarColor white1 "" . shorten 50
     , ppTitleSanitize   = xmobarStrip
-    , ppLayout          = xmobarColor white1 "" . \x -> case x of -- TODO Generalize string conversion
-                                                            "Spacing 12 Tabbed Hidden BSP" -> "Omni.Gaps"
-                                                            "Tabbed Hidden BSP"            -> "Omni"
-                                                            _                              -> "Misc"
+    , ppLayout          = xmobarColor white1 "" . \case "Spacing 12 Tabbed Hidden BSP" -> "Omni.Gaps"
+                                                        "Tabbed Hidden BSP"            -> "Omni"
+                                                        _                              -> "Misc"
     , ppOrder           = id
     , ppSort            = (namedScratchpadFilterOutWorkspace .) <$> getSortByIndex
     , ppExtras          = []

Consider giving Nix/NixOS a try! <3