From 675134d144da4136dd8d523821e1899cfc3c940e Mon Sep 17 00:00:00 2001 From: Thomas Preisner Date: Fri, 2 Mar 2018 20:07:12 +0100 Subject: [PATCH] config: barpyrus: config.py: move frame-function in front of widget configuration It most likely is better positioned here instead of next to the conky configuration. --- config/barpyrus/config.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)])