From 8ceca727f9537b83c7c1b213a1ad45e5066023a5 Mon Sep 17 00:00:00 2001 From: Derek Taylor Date: Sun, 17 Oct 2021 15:33:31 -0500 Subject: [PATCH] Adding battery widget to xmobar. --- .config/xmobar/xmobarrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.config/xmobar/xmobarrc b/.config/xmobar/xmobarrc index bc9623e..2907b2c 100644 --- a/.config/xmobar/xmobarrc +++ b/.config/xmobar/xmobarrc @@ -41,6 +41,10 @@ Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:h , Run Com "echo" ["\xf0f3"] "bell" 3600 -- Check for pacman updates (script found in .local/bin) , Run Com ".local/bin/pacupdate" [] "pacupdate" 36000 + -- Echos a "battery" icon in front of the pacman updates. + , Run Com "echo" ["\xf242"] "baticon" 3600 + -- Battery + , Run BatteryP ["BAT0"] ["-t", " (%)"] 360 -- Time and date , Run Date "\xf017 %b %d %Y - (%H:%M) " "date" 50 -- Script that dynamically adjusts xmobar padding depending on number of trayer icons. @@ -50,5 +54,5 @@ Config { font = "xft:Ubuntu:weight=bold:pixelsize=11:antialias=true:h ] , sepChar = "%" , alignSep = "}{" - , template = " | %UnsafeStdinReader% }{ %penguin% %kernel% %cpu% %memory% %disku% %uparrow% %uptime% %bell% %pacupdate% %date% %trayerpad%" + , template = " | %UnsafeStdinReader% }{ %penguin% %kernel% %cpu% %memory% %disku% %uparrow% %uptime% %bell% %pacupdate% %baticon% %battery% %date% %trayerpad%" }