xmobar/xmobar-0.24.1-fonts.patch

44 lines
1.8 KiB
Diff

diff -u -r -U5 --no-dereference xmobar-0.24.1/samples/xmobar.config xmobar-0.24.1.fonts/samples/xmobar.config
--- xmobar-0.24.1/samples/xmobar.config 2016-07-28 17:46:52.000000000 -0400
+++ xmobar-0.24.1.fonts/samples/xmobar.config 2016-08-04 21:35:45.540931471 -0400
@@ -1,6 +1,6 @@
-Config { font = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*"
+Config { font = "xft:mono-12"
, additionalFonts = []
, borderColor = "black"
, border = TopB
, bgColor = "black"
, fgColor = "grey"
diff -u -r -U5 --no-dereference xmobar-0.24.1/src/Config.hs xmobar-0.24.1.fonts/src/Config.hs
--- xmobar-0.24.1/src/Config.hs 2016-07-28 17:46:52.000000000 -0400
+++ xmobar-0.24.1.fonts/src/Config.hs 2016-08-04 21:35:45.541931473 -0400
@@ -108,11 +108,11 @@
deriving ( Read, Eq )
-- | The default configuration values
defaultConfig :: Config
defaultConfig =
- Config { font = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*"
+ Config { font = "xft:mono-12"
, additionalFonts = []
, bgColor = "#000000"
, fgColor = "#BFBFBF"
, alpha = 255
, position = Top
diff -u -r -U5 --no-dereference xmobar-0.24.1/src/XUtil.hsc xmobar-0.24.1.fonts/src/XUtil.hsc
--- xmobar-0.24.1/src/XUtil.hsc 2016-07-28 17:46:52.000000000 -0400
+++ xmobar-0.24.1.fonts/src/XUtil.hsc 2016-08-04 21:35:45.542931475 -0400
@@ -98,11 +98,11 @@
#else
fmap Core $ initCoreFont d s
#endif
miscFixedFont :: String
-miscFixedFont = "-misc-fixed-*-*-*-*-*-*-*-*-*-*-*-*"
+miscFixedFont = "-misc-fixed-*-*-*-*-13-*-*-*-*-*-*-*"
-- | Given a fontname returns the font structure. If the font name is
-- not valid the default font will be loaded and returned.
initCoreFont :: Display -> String -> IO FontStruct
initCoreFont d s = do