aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-01-31 21:07:07 +0100
committerAdrian Kummerlaender2019-01-31 21:07:07 +0100
commit2733f920ff4575c571e5570f7ebd551f8769730a (patch)
treebbd3ef15ee4b7cc763b7dfccb9582562b8bd012a
parentb6fb8d0ad3993eccb812750125252dda1764d074 (diff)
downloadnixos_home-2733f920ff4575c571e5570f7ebd551f8769730a.tar
nixos_home-2733f920ff4575c571e5570f7ebd551f8769730a.tar.gz
nixos_home-2733f920ff4575c571e5570f7ebd551f8769730a.tar.bz2
nixos_home-2733f920ff4575c571e5570f7ebd551f8769730a.tar.lz
nixos_home-2733f920ff4575c571e5570f7ebd551f8769730a.tar.xz
nixos_home-2733f920ff4575c571e5570f7ebd551f8769730a.tar.zst
nixos_home-2733f920ff4575c571e5570f7ebd551f8769730a.zip
Make XMonad border width host dependent
These host dependent changes are starting to get out of hand…
-rw-r--r--gui/conf/xmonad.hs7
1 files changed, 6 insertions, 1 deletions
diff --git a/gui/conf/xmonad.hs b/gui/conf/xmonad.hs
index 4e16d3f..bec0fff 100644
--- a/gui/conf/xmonad.hs
+++ b/gui/conf/xmonad.hs
@@ -238,7 +238,7 @@ main = do
$ docks
$ def
{ modMask = mod4Mask -- super key as modifier
- , borderWidth = 6
+ , borderWidth = borderWidthOn host
, normalBorderColor = "#161616"
, focusedBorderColor = "#909636"
, keys = \c -> mkKeymap c (customKeybindings host)
@@ -321,6 +321,11 @@ screenHeightOn host = case host of
"majestix" -> 1050
"asterix" -> 768
"athena" -> 1440
+borderWidthOn host = case host of
+ "obelix" -> 3
+ "majestix" -> 3
+ "asterix" -> 3
+ "athena" -> 6
decoHeightOn host = case host of
"obelix" -> 20
"majestix" -> 20