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:
parent
4c615d6167
commit
675134d144
1 changed files with 4 additions and 4 deletions
|
|
@ -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)])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue