diff --git a/config/barpyrus/config.py b/config/barpyrus/config.py index ace4a5d..dbe8bad 100644 --- a/config/barpyrus/config.py +++ b/config/barpyrus/config.py @@ -46,6 +46,12 @@ color = { def frame(content, bg, fg, padding = (3, 3)): return Theme(bg = color[bg], fg = color[fg], padding = padding)(content) +# function to insert colored icon into conky_text +def conky_icon(icon_code, icon_color, text_color = 'lightgrey'): + text = '%{F\\' + color[icon_color] + '}%{T2}' + icon_code + '%{T-}' + text += '%{F\\' + color[text_color] + '}' + return text + # conky specific configuration conky_text = ''