12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- ## Window settings
- own_window yes
- own_window_type override
- own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
- double_buffer yes
- ## Compton doesn't like conky transparent, so this is the fix
- ## http://conky.pitstop.free.fr/wiki/index.php5?title=Transparency_in_conky_(en)
- own_window_transparent no #yes
- own_window_argb_visual yes
- own_window_argb_value 0
- ## Window Size
- minimum_width 1900
- maximum_width 1920
- # fiddle with window
- use_spacer none
- use_xft yes
- ## Update interval in seconds
- update_interval 60.0
- ## Minimum size of text area
- # minimum_size 250 5
- ## Draw shades?
- draw_shades no
- ## Text stuff
- draw_outline no # amplifies text if yes
- draw_borders no
- font PragmataPro:size=7
- uppercase no
- ## Default colors and also border colors, grey90 == #e5e5e5
- default_color grey
- ## Text alignment, other possible values are commented
- #alignment top_left
- alignment top_right
- #alignment bottom_left
- #alignment bottom_right
- ## Gap between borders of screen and text
- ## The default size is a bit large
- gap_x 10
- gap_y 10
- ## stuff after ‘TEXT’ will be formatted on screen
- ## This summarizes the backup pass/fail state.
- ## Written to display 'fail' if periodicity not in log, though will look odd.
- ## For some reason 'monthly' can't be regexed... though it worked before fixing fail state.
- ## As such, 'month' is intentional.
- TEXT
- $color
- ${color grey90}Backups ${hr 2}$color
- ${alignr}${exec awk -v count=$(wc -l < $HOME/.config/borg/log) 'BEGIN {PASS=0; LC=0; LPASS=0} {if($3=="passed"){LPASS="☑ " $4 " " $1 " " $2}; if(NR > count-6){if($3=="passed"){PASS=1}};++LC} END {if(PASS==0){print LPASS}}' $HOME/.config/borg/log}
- ${alignr}${exec awk -v count=$(wc -l < $HOME/.config/borg/log) '{if(NR > count-6){if($3=="passed"){print "☑",$3,$1,$2} else {print "⚠",$4,$1,$2}}};' $HOME/.config/borg/log}
|