aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2020-02-04 11:14:32 -0700
committerJosh Rahm <rahm@google.com>2020-02-04 11:14:32 -0700
commite9880655c47247b13b9d44a16603ec600fe5e7e4 (patch)
tree29f0fe6c4621d259c69b2da63c63933f491a0b3c
parent04489c6c77e9c80e5b3332b81cea149dad1c7d88 (diff)
downloadrde-e9880655c47247b13b9d44a16603ec600fe5e7e4.tar.gz
rde-e9880655c47247b13b9d44a16603ec600fe5e7e4.tar.bz2
rde-e9880655c47247b13b9d44a16603ec600fe5e7e4.zip
Mave icons to the left. Change icon colors
-rw-r--r--src/Internal/LayoutDraw.hs22
-rw-r--r--src/Main.hs3
2 files changed, 14 insertions, 11 deletions
diff --git a/src/Internal/LayoutDraw.hs b/src/Internal/LayoutDraw.hs
index 3b3d3f0..5f0572d 100644
--- a/src/Internal/LayoutDraw.hs
+++ b/src/Internal/LayoutDraw.hs
@@ -45,17 +45,17 @@ drawPng l = do
let filepathXpm = pngCacheDir </> (quickHash descr ++ ".xpm")
let colors = [
- (1.0, 1.0, 1.0),
- (0.9, 0.9, 1.0),
- (0.8, 0.8, 1.0),
- (0.7, 0.7, 1.0),
- (0.6, 0.6, 1.0),
- (0.5, 0.5, 1.0),
- (0.4, 0.4, 1.0),
- (0.3, 0.3, 1.0),
- (0.2, 0.2, 1.0),
- (0.1, 0.1, 1.0),
- (0.0, 0.0, 1.0)
+ -- (1.0, 1.0, 1.0),
+ -- (0.9, 0.9, 1.0),
+ -- (0.8, 0.8, 1.0),
+ -- (0.7, 0.7, 1.0),
+ (0.6, 0.6, 0.8),
+ (0.5, 0.5, 0.8),
+ (0.4, 0.4, 0.8),
+ (0.3, 0.3, 0.8),
+ (0.2, 0.2, 0.8),
+ (0.1, 0.1, 0.8),
+ (0.0, 0.0, 0.8)
]
exists <- liftIO $ doesFileExist filepathXpm
diff --git a/src/Main.hs b/src/Main.hs
index 77a53a0..21bc4ba 100644
--- a/src/Main.hs
+++ b/src/Main.hs
@@ -12,6 +12,7 @@ import Text.Printf
import Internal.Keys
import Internal.LayoutDraw
+import Data.List (partition, isPrefixOf)
main = do
@@ -59,6 +60,8 @@ main = do
, ppSep = xmobarColor "#404040" "" " ──── "
, ppExtras = [showLayout]
+ , ppOrder = \ss ->
+ let (icons, etc) = partition ("<icon"`isPrefixOf`) ss in icons ++ etc
}
toggleStructsKey
config { modMask = mod4Mask }