From a383629eae2177dd08fafb4822d08db3277de6a1 Mon Sep 17 00:00:00 2001 From: la-ninpre Date: Wed, 25 Jan 2023 21:10:57 +0300 Subject: xmobar: fix fonts xmobar-0.46 (maybe earlier, i dunno) now parses fonts using pango format, not xft. --- xmobar/.config/xmobar/xmobar.hs | 85 +++++++++-------------------------------- 1 file changed, 17 insertions(+), 68 deletions(-) diff --git a/xmobar/.config/xmobar/xmobar.hs b/xmobar/.config/xmobar/xmobar.hs index e037dd2..c77bc15 100644 --- a/xmobar/.config/xmobar/xmobar.hs +++ b/xmobar/.config/xmobar/xmobar.hs @@ -8,19 +8,10 @@ instance Exec Separator where config :: Config config = defaultConfig - { font = "xft:Lato:weight=bold:pixelsize=12:antialias=true:hinting=true" - , additionalFonts = [ "xft:Font Awesome 5 Free Solid:pixelsize=12" - , "xft:Font Awesome 5 Brands:pixelsize=14" - -- sitelen pona pona by jackhumbert - --, "xft:sitelen\-pona:pixelsize=20:antialias=true:hinting=true" - -- linja pona - , "xft:linja pona:pixelsize=22:antialias=true:hinting=true" - ] + { font = "Lato 12" + , additionalFonts = ["linja pona, 16"] , bgColor = "#111111" , fgColor = "#ccbbcc" - , border = FullB - , borderWidth = 1 - , borderColor = "#223333" , position = Static { xpos = 8, ypos = 8, width = 1920-8*2, height = 24 } , lowerOnStart = True , hideOnStart = False @@ -28,97 +19,55 @@ config = defaultConfig , iconRoot = ".config/xmobar/xpm/" , commands = [ Run $ Com "uname" ["-r"] "kern" 0 , Run $ Uptime - ["-t" - -- normie - --, "\xf017 uptime: d" - -- sitelen pona pona by jackhumbert - --, "\xee6b\xee64\xee3d" - -- linja pona -- tenpo suno nanpa - , "\xe66b\xe664\xe63d" + ["-t" + , "\xe66b\xe664\xe63d" ] 60 , Run $ Cpu - ["-t" - -- normie - --, "\xf108cpu: %" - -- sitelen pona pona by jackhumbert - --, "\xee24\xee4d\xee0e\xee3d: %" - -- linja pona - , "\xe624\xe730\xe60e\xe63d: %" -- lawa pi ilo sona + ["-t" + , "\xe624\xe730\xe60e\xe63d: %" , "-H", "50", "--high", "#ffaaaa" ] 20 , Run $ Memory - ["-t" - -- normie - --, "\xf538 ram: M (%)" - -- sitelen pona pona by jackhumbert - --, "\xee53\xee49: M (%)" - -- linja pona - , "\xe653\xf174: M (%)" -- poki pali + ["-t" + , "\xe653\xf174: M (%)" ] 20 , Run $ DiskU - [("/home" - -- normie - --, "\xf0a0 hdd: free") - -- sitelen pona pona by jackhumbert - --, "\xee53\xee08: ") - -- linja pona - , "\xe653\xf109: ") -- poki awen + [("/home" + , "\xe653\xf109: ") ] [] 60 , Run $ Kbd - -- normie - --[ ("us", "\xf11c EN") - --, ("ru", "\xf11c RU") - --] - -- sitelen pona pona by jackhumbert - --[ ("us", "\xee6c\xee4d\xee0e\xee60 inli") - --, ("ru", "\xee6c\xee4d\xee0e\xee60 losi") - --] -- toki pi ilo sitelen - -- linja pona - [ ("us", "\xe66c\xe730\xe619\xe660 [INLI]") - , ("ru", "\xe66c\xe730\xe619\xe660 [LOSI]") + [ ("us", "\xe66c\xe730\xe619\xe660 [INLI]") + , ("ru", "\xe66c\xe730\xe619\xe660 [LOSI]") ] - -- toki pi ilo sitelen , Run $ Date - -- normie - --"\xf017 %d %b %Y %R" - -- sitelen pona pona by jackhumbert - --"\xee6b %d-%m-%Y %R" - -- linja pona - "\xe66b %d-%m-%Y %R" + "\xe66b %d-%m-%Y %R" -- tenpo "date" 50 , Run $ Network "wg0" ["-t" - -- normie - --, "\xf6d5" - -- sitelen pona pona by jackhumbert - --, "\xee01" - -- linja pona - , "\xe601" -- akesi + , "\xe601" ] 20 , Run Sep , Run UnsafeXMonadLog ] , sepChar = "%" , alignSep = "}{" - -- ... }{  ... -- normie - -- ... }{  linu ... -- sitelen pona pona by jackhumbert - -- ... }{  [_L_IN_U] ... -- linja pona + -- waso , template = " \ \%UnsafeXMonadLog%}{\ - \\xe674 [LINU] %kern%%s%\ + \\xe674 [LINU] %kern%%s%\ \%uptime%%s%\ \%cpu%%s%\ \%memory%%s%\ \%disku%%s%\ \%kbd%%s%\ - \%date%%s%\ + \%date%%s%\ \%wg0%%s%" } -- cgit v1.2.3