updated xmobar to show battery, need to update script to output xmobar friendly content

This commit is contained in:
Solomon Laing 2022-05-09 16:19:38 +09:30
parent ef0f3b958c
commit e05f6b1734

View File

@ -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 = " <action=`xdotool key super+a`><icon=haskell_20.xpm/></action> <fc=#bd93f9>%cpu% %memory%</fc> <action=`nm-connection-editor`>%network%</action> <action=`toggle-sink-mute`>%volume%</action> <fc=#6272a4>|</fc> %UnsafeStdinReader% }{ %keyboard% <fc=#6272a4>|</fc> %date% <fc=#6272a4>|</fc> %weather% <fc=#6272a4>|</fc> %updates% %trayerpad%"
, template = " <action=`xdotool key super+a`><icon=haskell_20.xpm/></action> %bat% <fc=#bd93f9>%cpu% %memory%</fc> <action=`nm-connection-editor`>%network%</action> <action=`toggle-sink-mute`>%volume%</action> <fc=#6272a4>|</fc> %UnsafeStdinReader% }{ %keyboard% <fc=#6272a4>|</fc> %date% <fc=#6272a4>|</fc> %weather% <fc=#6272a4>|</fc> %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