From 89594c26e8dc3aaa785f6039cf498edb2ad2e848 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Sun, 1 May 2022 17:00:47 +0100 Subject: [PATCH] Add icons to xmobar --- README.md | 6 +++--- home/vylpes/.config/xmobar/xmobarrc0 | 22 ++++++++++++---------- 2 files changed, 15 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index e299f91..23e7acb 100644 --- a/README.md +++ b/README.md @@ -31,13 +31,13 @@ This is a list of the packages I use - picom - powerlevel10k - pulseaudio -- qemu -- retroarch - rofi - rofi-emoji -- todoist +- ttf-font-awesome +- ttf-hack - vim - x11 - xmonad - xmobar +- yarn - zsh diff --git a/home/vylpes/.config/xmobar/xmobarrc0 b/home/vylpes/.config/xmobar/xmobarrc0 index 8dde90d..a67ae7d 100644 --- a/home/vylpes/.config/xmobar/xmobarrc0 +++ b/home/vylpes/.config/xmobar/xmobarrc0 @@ -1,11 +1,13 @@ -Config { font = "xft:hack:pixelsize=12:antialias=true:hinting=true" - , additionalFonts = [] +Config { font = "xft:hack:pixelsize=20:antialias=true:hinting=true" + , additionalFonts = [ "xft:Font Awesome 6 Free Solid:pixelsize=20" + , "xft:Font Awesome 6 Brands:pixelsize=20" + ] , borderColor = "black" , border = TopB , bgColor = "black" , fgColor = "grey" , alpha = 255 - , position = Static { xpos = 0, ypos = 0, width = 1920, height = 20 } + , position = Static { xpos = 0, ypos = 0, width = 2880, height = 30 } , textOffset = -1 , iconOffset = -1 , lowerOnStart = True @@ -15,17 +17,17 @@ Config { font = "xft:hack:pixelsize=12:antialias=true:hinting=true" , iconRoot = "/home/vylpes/.xmonad/xpm" , allDesktops = False , overrideRedirect = True - , commands = [ Run Network "enp24s0" ["-t", "rx kb tx kb"] 10 - , Run Cpu ["-t", "cpu %", "-L","3","-H","50", + , commands = [ Run Network "enp24s0" ["-t", "kb kb"] 10 + , Run Cpu ["-t", "%", "-L","3","-H","50", "--normal","green","--high","red"] 10 - , Run Memory ["-t","mem %"] 10 - , Run Com "uname" ["-s","-r"] "" 36000 + , Run Memory ["-t","%"] 10 + , Run Com "uname" ["-r"] "" 36000 , Run Date "%a %_d %b %Y %H:%M" "date" 10 - , Run DiskU [("/", "ssd free"),("/home", "| hdd free")] [] 10 + , Run DiskU [("/", ""),("/home", "| hdd ")] [] 10 , Run UnsafeStdinReader ] , sepChar = "%" , alignSep = "}{" - , template = "%cpu% | %memory% | %enp24s0% | %disku% }\ - \{ %date% | %uname% | %UnsafeStdinReader%" + , template = " %cpu% |  %memory% | %enp24s0% |  %disku% }\ + \{ %date% |  %uname% | %UnsafeStdinReader%" }