aboutsummaryrefslogtreecommitdiff
path: root/src/Internal/Layout.hs
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2021-11-04 02:17:24 -0600
committerJosh Rahm <rahm@google.com>2021-11-04 02:17:24 -0600
commit1705eeae8e3c14aa188dcd073e8875aab40e888c (patch)
tree5936e0dcc95006875f622f479182191ab08b98db /src/Internal/Layout.hs
parent3464c1dbb093b8a5729c40cc51f4448fd3e43337 (diff)
downloadrde-1705eeae8e3c14aa188dcd073e8875aab40e888c.tar.gz
rde-1705eeae8e3c14aa188dcd073e8875aab40e888c.tar.bz2
rde-1705eeae8e3c14aa188dcd073e8875aab40e888c.zip
Fixed huuuuge bug related to dynamicLogWithPP.
dynamicLogWithPP does not support Unicode properly!! It was encoding each "Char" (32 bits in Haskell, mind you!) to a utf-8 byte instead of a codepoint. The result was a butchared faux-utf8 encoded string. This was causing xmobar to crash with unicode + my truncating code. I have now moved away from dynamicLogWithPP and am writing my own log string manually. It's better this way anyway; less hacky; more fine-grained control.
Diffstat (limited to 'src/Internal/Layout.hs')
-rw-r--r--src/Internal/Layout.hs25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/Internal/Layout.hs b/src/Internal/Layout.hs
index 2b66f06..06ac7d6 100644
--- a/src/Internal/Layout.hs
+++ b/src/Internal/Layout.hs
@@ -23,18 +23,19 @@ import qualified Data.Map as M
import qualified XMonad.StackSet as W
myLayout =
- ModifiedLayout (Zoomable False 0.05 0.05) $
- ModifiedLayout (Flippable False) $
- ModifiedLayout (HFlippable False) $
- spacingRaw True (Border 5 5 5 5) True (Border 5 5 5 5) True $
- spiral (6/7) |||
- ModifyDescription TallDescriptionModifier (Tall 1 (3/100) (1/2)) |||
- ModifyDescription ThreeColDescMod (ThreeCol 1 (3/100) (1/2)) |||
- Full |||
- Grid |||
- Dishes 2 (1/6) |||
- (MosaicAlt M.empty :: MosaicAlt Window) |||
- (D.Dwindle D.R D.CW 1.5 1.1)
+ avoidStruts $
+ ModifiedLayout (Zoomable False 0.05 0.05) $
+ ModifiedLayout (Flippable False) $
+ ModifiedLayout (HFlippable False) $
+ spacingRaw True (Border 5 5 5 5) True (Border 5 5 5 5) True $
+ spiral (6/7) |||
+ ModifyDescription TallDescriptionModifier (Tall 1 (3/100) (1/2)) |||
+ ModifyDescription ThreeColDescMod (ThreeCol 1 (3/100) (1/2)) |||
+ Full |||
+ Grid |||
+ Dishes 2 (1/6) |||
+ (MosaicAlt M.empty :: MosaicAlt Window) |||
+ (D.Dwindle D.R D.CW 1.5 1.1)
data ModifyDescription m l a = ModifyDescription m (l a)
deriving (Show, Read)