diff --git a/config/barpyrus/config.py b/config/barpyrus/config.py index 48aa9f9..8611109 100644 --- a/config/barpyrus/config.py +++ b/config/barpyrus/config.py @@ -53,8 +53,20 @@ def conky_icon(icon_code, icon_color, text_color = 'lightgrey'): return text # conky specific configuration +# cpu temperature +conky_text = '${if_match \"$acpitemp\" <= \"50\"}' +conky_text += conky_icon('\ue01b', 'lightblue') +conky_text += '${else}' +conky_text += '${if_match \"$acpitemp\" <= \"70\"}' +conky_text += conky_icon('\ue01b', 'orange') +conky_text += '${else}' +conky_text += conky_icon('\ue01b', 'red') +conky_text += '${endif}' +conky_text += '${endif}' +conky_text += '${acpitemp}°C ' + # cpu and memory load factor -conky_text = conky_icon('\ue026', 'green') + '${cpu}% ' +conky_text += conky_icon('\ue026', 'green') + '${cpu}% ' conky_text += conky_icon('\ue021', 'green') + '${memperc}% ' # options for hlwm.HLWMLayoutSwitcher widget