back_log.conkyrc 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. conky.config = {
  2. -- Window settings
  3. own_window = true,
  4. own_window_type = 'override',
  5. own_window_class = 'Conky',
  6. own_window_hints = undecorated,below,sticky,skip_taskbar,skip_pager,
  7. double_buffer = true,
  8. -- Compton doesn't like conky transparent, so this is the fix
  9. -- http://conky.pitstop.free.fr/wiki/index.php5?title=Transparency_in_conky_(en)
  10. own_window_transparent = false,
  11. own_window_argb_visual = true,
  12. own_window_argb_value = 0,
  13. -- fiddle with window
  14. use_spacer = 'none',
  15. use_xft = true,
  16. -- Update interval in seconds
  17. update_interval = 10.0,
  18. -- Draw shades?
  19. draw_shades = false,
  20. -- Text stuff
  21. draw_outline = false, -- # amplifies text if true
  22. draw_borders = false,
  23. font = 'PragmataPro:size=7',
  24. uppercase = false,
  25. -- Default colors and also border colors, grey90 == #e5e5e5
  26. default_color = 'grey',
  27. -- Text alignment, other possible values are commented
  28. alignment = 'top_left',
  29. -- #alignment = 'top_right',
  30. -- #alignment = 'bottom_left',
  31. -- #alignment = 'bottom_right',
  32. -- Gap between borders of screen and text
  33. -- The default size is a bit large
  34. gap_x = 10,
  35. gap_y = 10,
  36. -- Set monitor
  37. -- 0 for main/primary?
  38. xinerama_head = 0,
  39. }
  40. --[[
  41. -- Displays from auth and syslog
  42. ]]
  43. conky.text = [[
  44. $color
  45. ${color grey90}AUTH ${hr 2}$color
  46. ${execi 30 (tail -n10 /var/log/auth.log 2>/dev/null || journalctl -qn 10 SYSLOG_FACILITY=10 2>/dev/null || tail -n10 /var/log/socklog/secure/current 2>/dev/null) | fold -w 300}
  47. ${color grey90}SYSLOG ${hr 2}$color
  48. ${execi 30 (tail -n30 /var/log/syslog 2>/dev/null || journalctl -qn 30 SYSLOG_FACILITY=3 2>/dev/null || tail -n30 /var/log/socklog/messages/current) | fold -w 300}
  49. ]];