+ DrawMe="${if_match ${battery_rate} > 0}1${else}0$endif",
+ },
+ {
+ name="battery_rate", --displays when charging
+ arg="",
+ max=500,
+ y=183,
+ x=593,
+ autoscale=true,
+ width=250,
+ height=85,
+ nb_values=125,
+ fg_bd_size=0,
+ bg_colour = {{0,0x667AF6,0},{1,0x000000,0}},
+ fg_bd_colour = { {0,0x00FF00,1},{0.5,0x00FF00,1},{1,0x00FF00,1}},
+ fg_colour = { {1,0x00FF00,0.3},{0.5,0x00FF00,0.6},{0,0x00FF00,0.8}},
+ foreground=true,
+ bg_orientation="ne",
+ fg_orientation="ee",
+ DrawMe="${if_match ${battery_rate} < 0}1${else}0$endif",