xmobar/xmobar-0.23.1-fonts.patch
2015-07-19 14:20:45 -04:00

44 lines
1.8 KiB
Diff

diff -u -r -U5 --no-dereference xmobar-0.23.1/samples/xmobar.config xmobar-0.23.1.fonts/samples/xmobar.config
--- xmobar-0.23.1/samples/xmobar.config 2015-04-14 13:08:19.000000000 -0400
+++ xmobar-0.23.1.fonts/samples/xmobar.config 2015-07-19 14:07:55.907772860 -0400
@@ -1,6 +1,6 @@
-Config { font = "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*"
+Config { font = "xft:mono-12"
, addtionalFonts = []
, borderColor = "black"
, border = TopB
, bgColor = "black"
, fgColor = "grey"
diff -u -r -U5 --no-dereference xmobar-0.23.1/src/Config.hs xmobar-0.23.1.fonts/src/Config.hs
--- xmobar-0.23.1/src/Config.hs 2015-04-14 13:08:19.000000000 -0400
+++ xmobar-0.23.1.fonts/src/Config.hs 2015-07-19 14:05:31.913954304 -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.23.1/src/XUtil.hsc xmobar-0.23.1.fonts/src/XUtil.hsc
--- xmobar-0.23.1/src/XUtil.hsc 2015-04-14 13:08:19.000000000 -0400
+++ xmobar-0.23.1.fonts/src/XUtil.hsc 2015-07-19 14:05:10.532982017 -0400
@@ -92,11 +92,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