diff --git a/config/barpyrus/config.py b/config/barpyrus/config.py index 0f49e1a..c5c5c30 100644 --- a/config/barpyrus/config.py +++ b/config/barpyrus/config.py @@ -42,10 +42,6 @@ color = { 'red': '#CC0403', } -# function to create colored frames -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-}' @@ -108,6 +104,10 @@ xkblayouts = [ setxkbmap = 'setxkbmap -option compose:menu -option ctrl:nocaps' setxkbmap += ' -option compose:ralt -option compose:rctrl' +# function to create colored frames +def frame(content, bg, fg, padding = (3, 3)): + return Theme(bg = color[bg], fg = color[fg], padding = padding)(content) + # get space for the panel hc(['pad', str(monitor), str(height)])