conky: Check for battery presence
parent
39fcd37eed
commit
81b1813119
3
.conkyrc
3
.conkyrc
|
@ -24,7 +24,7 @@ conky.text =
|
|||
^fg(grey)↑^fg(DeepSkyBlue)${eval $${upspeedf ${gw_iface}}} \
|
||||
^fg(grey)♪^fg(DeepSkyBlue)${exec amixer get Master -M | grep -oE "[0-9]*%"} \
|
||||
^fg(grey)✉^fg(DeepSkyBlue)${execi 30 mu find --nocolor --sortfield=d --maxnum=500 flag:unread AND NOT flag:trashed | wc -l} \
|
||||
^fg(grey)⚡^fg(DeepSkyBlue)${if_match ${battery_percent} <= 5}^fg(Red)${endif}${battery_short}:${battery_time} \
|
||||
${if_match $battery_percent != 0}^fg(grey)⚡^fg(DeepSkyBlue)${if_match ${battery_percent} <= 5}^fg(Red)${endif}${battery_short}:${battery_time} ${endif}\
|
||||
^fg(grey)sda:^fg(DeepSkyBlue)${diskio sda} \
|
||||
]]
|
||||
|
||||
|
@ -34,4 +34,5 @@ conky.text =
|
|||
-- TODO: Don't display hard-drive IO<1MB.
|
||||
-- TODO: Track all hard-drives.
|
||||
-- TODO: Add playing track (emacsclient)
|
||||
-- TODO: Conditional display of network, sound, e-mail.
|
||||
-- Probably need $lua+$eval for most of the TODOs.
|
||||
|
|
Loading…
Reference in New Issue