ENH use nerd font
This commit is contained in:
parent
df94a93390
commit
8c30e05390
|
@ -48,9 +48,9 @@ main = do
|
||||||
config :: BarRegions -> String -> Config
|
config :: BarRegions -> String -> Config
|
||||||
config br confDir = defaultConfig
|
config br confDir = defaultConfig
|
||||||
{ font = barFont
|
{ font = barFont
|
||||||
, additionalFonts = [ iconFont, iconFontLarge, blockFont ]
|
, additionalFonts = [iconFont, iconFontLarge, iconFontXLarge]
|
||||||
, textOffset = 16
|
, textOffset = 16
|
||||||
, textOffsets = [ 16, 17, 17 ]
|
, textOffsets = [16, 17, 18]
|
||||||
, bgColor = T.bgColor
|
, bgColor = T.bgColor
|
||||||
, fgColor = T.fgColor
|
, fgColor = T.fgColor
|
||||||
, position = BottomSize C 100 24
|
, position = BottomSize C 100 24
|
||||||
|
@ -173,13 +173,13 @@ lockCmd = CmdSpec
|
||||||
{ csAlias = "locks"
|
{ csAlias = "locks"
|
||||||
, csRunnable = Run
|
, csRunnable = Run
|
||||||
$ Locks
|
$ Locks
|
||||||
[ "-N", "<fn=3>\x1f13d</fn>"
|
[ "-N", "<fn=3>\xf8a5</fn>"
|
||||||
, "-n", xmobarColor T.backdropFgColor "" "<fn=3>\x1f13d</fn>"
|
, "-n", xmobarColor T.backdropFgColor "" "<fn=3>\xf8a5</fn>"
|
||||||
, "-C", "<fn=3>\x1f132</fn>"
|
, "-C", "<fn=3>\xf657</fn>"
|
||||||
, "-c", xmobarColor T.backdropFgColor "" "<fn=3>\x1f132</fn>"
|
, "-c", xmobarColor T.backdropFgColor "" "<fn=3>\xf657</fn>"
|
||||||
, "-s", ""
|
, "-s", ""
|
||||||
, "-S", ""
|
, "-S", ""
|
||||||
, "-d", "<fn=3> </fn>"
|
, "-d", " "
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -326,21 +326,21 @@ barFont = T.fmtFontXFT T.font
|
||||||
|
|
||||||
iconFont :: String
|
iconFont :: String
|
||||||
iconFont = T.fmtFontXFT T.font
|
iconFont = T.fmtFontXFT T.font
|
||||||
{ T.family = "FontAwesome"
|
{ T.family = "Symbols Nerd Font"
|
||||||
, T.size = Nothing
|
, T.size = Nothing
|
||||||
, T.pixelsize = Just 13
|
, T.pixelsize = Just 13
|
||||||
}
|
}
|
||||||
|
|
||||||
iconFontLarge :: String
|
iconFontLarge :: String
|
||||||
iconFontLarge = T.fmtFontXFT T.font
|
iconFontLarge = T.fmtFontXFT T.font
|
||||||
{ T.family = "FontAwesome"
|
{ T.family = "Symbols Nerd Font"
|
||||||
, T.size = Nothing
|
, T.size = Nothing
|
||||||
, T.pixelsize = Just 15
|
, T.pixelsize = Just 15
|
||||||
}
|
}
|
||||||
|
|
||||||
blockFont :: String
|
iconFontXLarge :: String
|
||||||
blockFont = T.fmtFontXFT T.font
|
iconFontXLarge = T.fmtFontXFT T.font
|
||||||
{ T.family = "Symbola"
|
{ T.family = "Symbols Nerd Font"
|
||||||
, T.size = Just 13
|
, T.size = Nothing
|
||||||
, T.weight = Just T.Bold
|
, T.pixelsize = Just 20
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue