You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
2.2 KiB

2 years ago
  1. -- vim:ft=lua
  2. -- Conky, a system monitor https://github.com/brndnmtthws/conky
  3. --
  4. -- This configuration file is Lua code. You can write code in here, and it will
  5. -- execute when Conky loads. You can use it to generate your own advanced
  6. -- configurations.
  7. --
  8. -- Try this (remove the `--`):
  9. --
  10. -- print("Loading Conky config")
  11. --
  12. -- For more on Lua, see:
  13. -- https://www.lua.org/pil/contents.html
  14. conky.config = {
  15. alignment = 'middle_left',
  16. background = false,
  17. border_width = 30,
  18. cpu_avg_samples = 2,
  19. default_color = '#f5e0dc',
  20. own_window_colour = '#1e1e2e',
  21. default_outline_color = 'white',
  22. default_shade_color = 'white',
  23. double_buffer = true,
  24. draw_borders = false,
  25. draw_graph_borders = true,
  26. draw_outline = false,
  27. draw_shades = false,
  28. extra_newline = false,
  29. font = 'JetBrains Mono Nerd Font Mono:size=10',
  30. gap_x = 60,
  31. gap_y = 60,
  32. minimum_height = 5,
  33. minimum_width = 5,
  34. net_avg_samples = 2,
  35. no_buffers = true,
  36. out_to_console = false,
  37. out_to_ncurses = false,
  38. out_to_stderr = false,
  39. out_to_x = true,
  40. own_window = true,
  41. own_window_class = 'Conky',
  42. own_window_type = 'override',
  43. show_graph_range = false,
  44. show_graph_scale = false,
  45. stippled_borders = 0,
  46. update_interval = 1.0,
  47. uppercase = false,
  48. use_spacer = 'none',
  49. use_xft = true,
  50. own_window_argb_visual = true,
  51. own_window_argb_value = 220, -- out of 255
  52. }
  53. conky.text = [[
  54. $alignc${mpd_smart}
  55. ${mpd_bar}
  56. $hr
  57. ${color grey}Uptime:$color $uptime
  58. ${color grey}Frequency :$color $freq_g GHz
  59. ${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4}
  60. ${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4}
  61. ${color grey}CPU Usage:$color $cpu% ${cpubar 4}
  62. $hr
  63. / $color${fs_used /}/${fs_size /} ${fs_bar 6 /}
  64. ${color #a6e3a1}Up:$color ${upspeed} ${color grey} - ${color #a6e3a1}Down:$color ${downspeed}
  65. $hr
  66. ${color grey}Name PID CPU% MEM%
  67. ${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
  68. ${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
  69. ${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
  70. ${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
  71. ]]