12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- ## 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
- Yearly ${alignr}${exec awk '/yearly/ {LL=$0;if($4=="passed"){LAST=$1 " " $2}} END {match(LL, /(.*)\s(.*)\t(\w+)\t(\w+)\t([0-9]+)/, m); if(m[4]=="passed"){printf "☑ passed %s %s\n", m[1], m[2]} else {printf "⚠ last passed %s\n", LAST}}' $HOME/.config/cryptshotr-cron/log}
- Monthly ${alignr}${exec awk '/month/ {LL=$0;if($4=="passed"){LAST=$1 " " $2}} END {match(LL, /(.*)\s(.*)\t(\w+)\t(\w+)\t([0-9]+)/, m); if(m[4]=="passed"){printf "☑ passed %s %s\n", m[1], m[2]} else {printf "⚠ last passed %s\n", LAST}}' $HOME/.config/cryptshotr-cron/log}
- Weekly ${alignr}${exec awk '/weekly/ {LL=$0;if($4=="passed"){LAST=$1 " " $2}} END {match(LL, /(.*)\s(.*)\t(\w+)\t(\w+)\t([0-9]+)/, m); if(m[4]=="passed"){printf "☑ passed %s %s\n", m[1], m[2]} else {printf "⚠ last passed %s\n", LAST}}' $HOME/.config/cryptshotr-cron/log}
- Daily ${alignr}${exec awk '/daily/ {LL=$0;if($4=="passed"){LAST=$1 " " $2}} END {match(LL, /(.*)\s(.*)\t(\w+)\t(\w+)\t([0-9]+)/, m); if(m[4]=="passed"){printf "☑ passed %s %s\n", m[1], m[2]} else {printf "⚠ last passed %s\n", LAST}}' $HOME/.config/cryptshotr-cron/log}
- Hourly ${alignr}${exec awk '/hourly/ {LL=$0;if($4=="passed"){LAST=$1 " " $2}} END {match(LL, /(.*)\s(.*)\t(\w+)\t(\w+)\t([0-9]+)/, m); if(m[4]=="passed"){printf "☑ passed %s %s\n", m[1], m[2]} else {printf "⚠ last passed %s\n", LAST}}' $HOME/.config/cryptshotr-cron/log}
|