xmobar: fuse battery format

This commit is contained in:
Primrose 2025-07-13 22:54:53 +02:00
parent 9e5cab7986
commit e3a9d6ac49
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -13,7 +13,7 @@
, position = BottomH 30 , position = BottomH 30
, commands = [ Run Date "%a %d %H:%M:%S" "date" 10 , commands = [ Run Date "%a %d %H:%M:%S" "date" 10
, Run Battery , Run Battery
[ "-t", "<left> (<timeleft>)" [ "-t", "<left> (<timeleft>"
, "-H", "70" , "-H", "70"
, "-L", "20" , "-L", "20"
, "-h", "green" , "-h", "green"
@ -24,7 +24,8 @@
, "-A", "20" , "-A", "20"
, "-a", "notify-send -u critical \"Battery Low\" \"Please charge your battery\"" , "-a", "notify-send -u critical \"Battery Low\" \"Please charge your battery\""
] ]
600 60
, Run Com "powerprofilesctl" [ "get" ] "" 60
, Run XMonadLog , Run XMonadLog
, Run , Run
DynNetwork DynNetwork
@ -51,11 +52,10 @@
, "--low", "blue" , "--low", "blue"
] ]
9000 9000
, Run Com "powerprofilesctl" [ "get" ] "" 60
] ]
, sepChar = "%" , sepChar = "%"
, alignSep = "}{" , alignSep = "}{"
, template = " %XMonadLog% }{ %dynnetwork% | %LFRN% | %battery% %powerprofilesctl% | %date% " , template = " %XMonadLog% }{ %dynnetwork% | %LFRN% | %battery%, %powerprofilesctl%) | %date% "
} }
''; '';
}; };