feat: update font config

This commit is contained in:
♥ Minnie ♥ 2025-03-07 00:52:24 +08:00
parent 84dd17ae7c
commit ca7a9f1d57
Signed by: jasmine
GPG key ID: 8563E358D4E8040E
2 changed files with 10 additions and 7 deletions

View file

@ -8,8 +8,11 @@ import XMonadConfig.GruvboxMaterial
config :: Config
config =
defaultConfig
{ font = "Fisa Code 10"
, additionalFonts = ["Symbols Nerd Font 2048-em 24"]
{ font = "Fisa Code Book Italic 10"
, additionalFonts =
[ "Fisa Code Bold 10"
, "Symbols Nerd Font 2048-em 24"
]
, bgColor = background
, fgColor = foreground
, border = BottomB
@ -30,7 +33,7 @@ config =
}
where
myLogo :: String
myLogo = wrap " " " " "<fn=1>\59255</fn>"
myLogo = wrap " " " " "<fn=2>\59255</fn>"
-- Commands to run xmobar modules on start
myCommands :: [Runnable]
@ -47,7 +50,7 @@ config =
, -- Date Format Alias RefreshRate
Run $
Date
(grey2 "%A %B %d %Y " ++ yellow "%H:%M:%S")
(grey2 "%A %B %d %Y " ++ yellow "<fn=2>%H:%M:%S")
"date"
(1 `seconds`)
, -- Weather StationID Args RefreshRate
@ -92,10 +95,10 @@ config =
ppTitle = wrap "" ": " . grey2
inWrapper :: String -> String
inWrapper = wrap (grey0 " [ ") (grey0 " ] ")
inWrapper = wrap (grey0 " <fn=1>[</fn> ") (grey0 " <fn=1>]</fn> ")
inWrapper' :: String -> String
inWrapper' = wrap (grey0 "[ ") (grey0 " ] ")
inWrapper' = wrap (grey0 "<fn=1>[</fn> ") (grey0 " <fn=1>]</fn> ")
main :: IO ()
main = configFromArgs config >>= xmobar

View file

@ -139,7 +139,7 @@ myXmobarPP = def
, ppHidden = grey0 . wrap " " ""
, ppHiddenNoWindows = grey0 . wrap " " ""
, ppUrgent = red . wrap " " ""
, ppLayout = aqua . wrap (grey0 " [ ") (grey0 " ] ")
, ppLayout = aqua . wrap (grey0 " <fn=1>[</fn> ") (grey0 " <fn=1>]</fn> ")
, ppOrder = \[ws, l, _] -> [ws, l]
}