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.
This commit is contained in:
Thomas Preisner 2018-03-02 20:07:12 +01:00
parent 4c615d6167
commit 675134d144

View file

@ -42,10 +42,6 @@ color = {
'red': '#CC0403', '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 # function to insert colored icon into conky_text
def conky_icon(icon_code, icon_color, text_color = 'lightgrey'): def conky_icon(icon_code, icon_color, text_color = 'lightgrey'):
text = '%{F\\' + color[icon_color] + '}%{T2}' + icon_code + '%{T-}' text = '%{F\\' + color[icon_color] + '}%{T2}' + icon_code + '%{T-}'
@ -108,6 +104,10 @@ xkblayouts = [
setxkbmap = 'setxkbmap -option compose:menu -option ctrl:nocaps' setxkbmap = 'setxkbmap -option compose:menu -option ctrl:nocaps'
setxkbmap += ' -option compose:ralt -option compose:rctrl' 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 # get space for the panel
hc(['pad', str(monitor), str(height)]) hc(['pad', str(monitor), str(height)])