Add icons to xmobar

This commit is contained in:
Ethan Lane 2022-05-01 17:00:47 +01:00
parent 7037ec488a
commit 89594c26e8
Signed by: Vylpes
GPG key ID: EED233CC06D12504
2 changed files with 15 additions and 13 deletions

View file

@ -31,13 +31,13 @@ This is a list of the packages I use
- picom - picom
- powerlevel10k - powerlevel10k
- pulseaudio - pulseaudio
- qemu
- retroarch
- rofi - rofi
- rofi-emoji - rofi-emoji
- todoist - ttf-font-awesome
- ttf-hack
- vim - vim
- x11 - x11
- xmonad - xmonad
- xmobar - xmobar
- yarn
- zsh - zsh

View file

@ -1,11 +1,13 @@
Config { font = "xft:hack:pixelsize=12:antialias=true:hinting=true" Config { font = "xft:hack:pixelsize=20:antialias=true:hinting=true"
, additionalFonts = [] , additionalFonts = [ "xft:Font Awesome 6 Free Solid:pixelsize=20"
, "xft:Font Awesome 6 Brands:pixelsize=20"
]
, borderColor = "black" , borderColor = "black"
, border = TopB , border = TopB
, bgColor = "black" , bgColor = "black"
, fgColor = "grey" , fgColor = "grey"
, alpha = 255 , alpha = 255
, position = Static { xpos = 0, ypos = 0, width = 1920, height = 20 } , position = Static { xpos = 0, ypos = 0, width = 2880, height = 30 }
, textOffset = -1 , textOffset = -1
, iconOffset = -1 , iconOffset = -1
, lowerOnStart = True , lowerOnStart = True
@ -15,17 +17,17 @@ Config { font = "xft:hack:pixelsize=12:antialias=true:hinting=true"
, iconRoot = "/home/vylpes/.xmonad/xpm" , iconRoot = "/home/vylpes/.xmonad/xpm"
, allDesktops = False , allDesktops = False
, overrideRedirect = True , overrideRedirect = True
, commands = [ Run Network "enp24s0" ["-t", "rx <rx>kb tx <tx>kb"] 10 , commands = [ Run Network "enp24s0" ["-t", "<fn=1></fn><rx>kb <fn=1></fn><tx>kb"] 10
, Run Cpu ["-t", "cpu <total>%", "-L","3","-H","50", , Run Cpu ["-t", "<total>%", "-L","3","-H","50",
"--normal","green","--high","red"] 10 "--normal","green","--high","red"] 10
, Run Memory ["-t","mem <usedratio>%"] 10 , Run Memory ["-t","<usedratio>%"] 10
, Run Com "uname" ["-s","-r"] "" 36000 , Run Com "uname" ["-r"] "" 36000
, Run Date "%a %_d %b %Y %H:%M" "date" 10 , Run Date "%a %_d %b %Y %H:%M" "date" 10
, Run DiskU [("/", "ssd <free> free"),("/home", "| hdd <free> free")] [] 10 , Run DiskU [("/", "<free>"),("/home", "| hdd <free>")] [] 10
, Run UnsafeStdinReader , Run UnsafeStdinReader
] ]
, sepChar = "%" , sepChar = "%"
, alignSep = "}{" , alignSep = "}{"
, template = "%cpu% | %memory% | %enp24s0% | %disku% }\ , template = "<fn=1></fn> %cpu% | <fn=1></fn> %memory% | %enp24s0% | <fn=1></fn> %disku% }\
\{ <fc=#ee9a00>%date%</fc> | %uname% | %UnsafeStdinReader%" \{ <fc=#ee9a00>%date%</fc> | <fn=2></fn> %uname% | %UnsafeStdinReader%"
} }