W.ListLayout([ W.RawLabel('%{c}'), hlwm.HLWMMonitorFocusLayout( hc, monitor, # this widget is shown on the focused monitor: grey_frame(hlwm.HLWMWindowTitle(hc, maxlen=70)), # this widget is shown on all unfocused monitors: conky_widget, ) ]), # W.ListLayout([ W.RawLabel('%{c}'), conky_widget ]), ])), tab_renderer=tab_renderer), W.RawLabel('%{r}'), # something like a tabbed widget with the tab labels '>' and '<' # W.TabbedLayout([ # ('0', W.RawLabel('')), # ('1', hlwm.HLWMLayoutSwitcher(hc, xkblayouts, command = setxkbmap.split(' '))), # ], tab_renderer = zip_renderer), # conky.ConkyWidget('df /: ${fs_used_perc /}%'), # W.RawLabel(' '), # conky.ConkyWidget(text = conky_sep), # conky.ConkyWidget('df /home: ${fs_used_perc /home}%'), # W.RawLabel(' '), # conky.ConkyWidget(text = conky_sep), # W.RawLabel(' '), conky.ConkyWidget(text=conky_text), W.DateTime('%I:%M %p'), ])
from barpyrus import conky import sys # Copy this config to ~/.config/barpyrus/config.py # set up a connection to herbstluftwm in order to get events # and in order to call herbstclient commands hc = hlwm.connect() # get the geometry of the monitor monitor = sys.argv[1] if len(sys.argv) >= 2 else 0 (x, y, monitor_w, monitor_h) = hc.monitor_rect(monitor) height = 16 # height of the panel width = monitor_w # width of the panel hc(['pad', str(monitor), str(height)]) # get space for the panel # you can define custom themes grey_frame = Theme(bg='#303030', fg='#EFEFEF', padding=(3, 3)) # Widget configuration: bar = lemonbar.Lemonbar(geometry=(x, y, width, height)) bar.widget = W.ListLayout([ W.RawLabel('%{l}'), hlwm.HLWMTags(hc, monitor), W.RawLabel('%{c}'), grey_frame(hlwm.HLWMWindowTitle(hc)), W.RawLabel('%{r}'), conky.ConkyWidget('df /: ${fs_used_perc /}%'), grey_frame(W.DateTime('%d. %B, %H:%M')), ])
hlwm.HLWMTags(hc, monitor, tag_renderer=hlwm.underlined_tags), hlwm.HLWMMonitorFocusLayout( hc, monitor, # this widget is shown on the focused monitor: green_frame(hlwm.HLWMLayout(hc)), # this widget is shown on all unfocused monitors: green_frame(hlwm.HLWMLayout(hc))), #hlwm.HLWMMonitorFocusLayout(hc, monitor, # # this widget is shown on the focused monitor: # grey_frame(hlwm.HLWMWindowTitle(hc)), # # this widget is shown on all unfocused monitors: # grey_frame(hlwm.HLWMWindowTitle(hc)) # ), W.RawLabel('%{c}'), purple_frame(W.DateTime('%d. %B, %H:%M')), pink_frame(conky.ConkyWidget(text=conky_weather)), W.RawLabel('%{r}'), W.ShortLongLayout(W.RawLabel(' '), W.ListLayout([conky.ConkyWidget(text=conky_text)])), # something like a tabbed widget with the tab labels '>' and '<' W.ShortLongLayout( W.RawLabel(' '), W.StackedLayout([ hlwm.HLWMLayoutSwitcher(hc, xkblayouts, command=setxkbmap.split(' ')), W.RawLabel(' '), ])), W.ShortLongLayout(W.RawLabel(' '),