aboutsummaryrefslogtreecommitdiff
path: root/gui/conf
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-01-31 20:52:34 +0100
committerAdrian Kummerlaender2019-01-31 20:52:34 +0100
commitb6fb8d0ad3993eccb812750125252dda1764d074 (patch)
tree2f9e8cfafea7b587369d80b688498ef13e9aec5a /gui/conf
parent8baa7a0b67be91fe22d6f668440466ab857554c5 (diff)
downloadnixos_home-b6fb8d0ad3993eccb812750125252dda1764d074.tar
nixos_home-b6fb8d0ad3993eccb812750125252dda1764d074.tar.gz
nixos_home-b6fb8d0ad3993eccb812750125252dda1764d074.tar.bz2
nixos_home-b6fb8d0ad3993eccb812750125252dda1764d074.tar.lz
nixos_home-b6fb8d0ad3993eccb812750125252dda1764d074.tar.xz
nixos_home-b6fb8d0ad3993eccb812750125252dda1764d074.tar.zst
nixos_home-b6fb8d0ad3993eccb812750125252dda1764d074.zip
Extract hidpi support
Diffstat (limited to 'gui/conf')
-rw-r--r--gui/conf/xmonad.hs11
1 files changed, 8 insertions, 3 deletions
diff --git a/gui/conf/xmonad.hs b/gui/conf/xmonad.hs
index 63845b3..4e16d3f 100644
--- a/gui/conf/xmonad.hs
+++ b/gui/conf/xmonad.hs
@@ -45,9 +45,9 @@ import System.Posix.Unistd
workspaces :: [WorkspaceId]
workspaces = map show [1 .. 9 :: Int]
-customTabTheme = (theme xmonadTheme)
+customTabTheme host = (theme xmonadTheme)
{ fontName = "xft:Iosevka Medium-12"
- , decoHeight = 30
+ , decoHeight = decoHeightOn host
, activeTextColor = "#222222"
, activeColor = "#909636"
, inactiveTextColor = "#999999"
@@ -62,7 +62,7 @@ customLayoutHook host = id
$ bsp ||| tabs ||| frame ||| tiles ||| two
where
bsp = name "bsp" $ borderResize (emptyBSP)
- tabs = name "tabs" $ tabbed shrinkText customTabTheme
+ tabs = name "tabs" $ tabbed shrinkText (customTabTheme host)
frame = name "frame" $ id
. mkToggle (single REFLECTX)
. mkToggle (single REFLECTY)
@@ -321,3 +321,8 @@ screenHeightOn host = case host of
"majestix" -> 1050
"asterix" -> 768
"athena" -> 1440
+decoHeightOn host = case host of
+ "obelix" -> 20
+ "majestix" -> 20
+ "asterix" -> 20
+ "athena" -> 30