From e05f6b1734e5c36dcf349826467301fe799f9741 Mon Sep 17 00:00:00 2001 From: Solomon Laing Date: Mon, 9 May 2022 16:19:38 +0930 Subject: [PATCH] updated xmobar to show battery, need to update script to output xmobar friendly content --- .config/xmobar/xmobarrc-single.hs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.config/xmobar/xmobarrc-single.hs b/.config/xmobar/xmobarrc-single.hs index e9f3b23..d4a7287 100644 --- a/.config/xmobar/xmobarrc-single.hs +++ b/.config/xmobar/xmobarrc-single.hs @@ -2,7 +2,7 @@ Config { -- appearance font = "xft:Fira Code:size=9:antialias=true:hinting=true" - , additionalFonts = [ "xft:FiraCode Nerd Font:size=9:antialias=true:hinting=true" ] + , additionalFonts = [ "xft:Font Awesome:size=9:antialias=true:hinting=true" ] , bgColor = "#282a36" , fgColor = "#f8f8f2" , position = Top @@ -14,7 +14,7 @@ Config { -- layout , sepChar = "%" -- delineator between plugin names and straight text , alignSep = "}{" -- separator between left-right alignment - , template = " %cpu% %memory% %network% %volume% | %UnsafeStdinReader% }{ %keyboard% | %date% | %weather% | %updates% %trayerpad%" + , template = " %bat% %cpu% %memory% %network% %volume% | %UnsafeStdinReader% }{ %keyboard% | %date% | %weather% | %updates% %trayerpad%" -- general behavior , lowerOnStart = True -- send to bottom of window stack on start @@ -133,6 +133,9 @@ Config { -- Script that pulls weather related data and builds string to display , Run Com "xmobar-status-weather" ["YPAD"] "weather" 300 + + -- Script polls the batter for info and displays nicely + , Run Com "status-bat" [] "bat" 20 -- Prints out the left side items such as workspaces, layout, etc. , Run UnsafeStdinReader