102 行
3.1 KiB

  1. # ~/.conkyrc
  2. #
  3. double_buffer yes
  4. background no
  5. use_xft yes
  6. xftfont DejaVu Sans Mono:size=10
  7. xftalpha 0.8
  8. update_interval 1.0
  9. total_run_times 0
  10. own_window yes
  11. own_window_type desktop
  12. own_window_transparent yes
  13. own_window_colour hotpink
  14. #own_window_hints undecorated,below,skip_taskbar,sticky,skip_pager
  15. minimum_size 200
  16. draw_shades no
  17. draw_outline no
  18. draw_borders no
  19. stippled_borders 0
  20. border_width 1
  21. alignment top_right
  22. gap_x 20
  23. gap_y 40
  24. default_color green # slategrey
  25. default_shade_color lightgrey
  26. default_outline_color black
  27. color0 white # value
  28. color1 white # vertical border
  29. color2 green # name
  30. color3 gray # displays
  31. color4 888888 # border of netspeed graph
  32. no_buffers yes
  33. uppercase no
  34. format_human_readable yes
  35. if_up_strictness link
  36. TEXT
  37. ${color0}${alignr}${sysname} ${kernel} (${machine})
  38. ${color0}${alignr}${execi 30000 whoami}@${nodename}
  39. ${color0}${hr}
  40. ${color2}uptm ${color1}|${color0} ${uptime}
  41. ${color2}lgin ${color1}|${color0} ${uptime}
  42. ${color0}${stippled_hr}
  43. ${color2}cpu ${color1}|${color0} ${cpu}% ${cpubar}
  44. ${color2}freq ${color1}|${color0} ${freq 1}Mhz | ${freq 2}Mhz
  45. ${color2}temp ${color1}|${color0} ${acpitemp} °C
  46. ${color0}${hr}
  47. ${color2}ram ${color1}|${color0} ${mem} ${membar}
  48. ${color2}swap ${color1}|${color0} ${if_match "${swapperc}" == "No swap"}None${else}${swap} ${swapbar}${endif}
  49. ${color0}${stippled_hr}
  50. ${color2}root ${color1}|${color0} ${fs_used /} #/${fs_size /}
  51. ${fs_bar /}
  52. ${color2}/tmp ${color1}|${color0} ${fs_used /tmp} #/${fs_size /tmp}
  53. ${fs_bar /tmp}
  54. ${color2}i/o ${color1}|${color0} ${diskio}
  55. ${color0}${hr}
  56. ${if_up wlan0}\
  57. ${color2}if ${color1}|${color0} wlan0:${addr wlan0}
  58. ${color2}ssid ${color1}|${color0} ${wireless_essid wlan0} ${wireless_link_qual_perc wlan0}%
  59. ${color0}${stippled_hr}
  60. ${color2}down ${color1}|${color0} ${downspeed wlan0}/s
  61. ${color4}${downspeedgraph wlan0 ff0000 0000ff}
  62. ${color2}up ${color1}|${color0} ${upspeed wlan0}/s
  63. ${color4}${upspeedgraph wlan0 0000ff ff0000}
  64. ${endif}\
  65. ${if_up wlan2}\
  66. ${color2}if ${color1}|${color0} wlan0:${addr wlan2}
  67. ${color2}ssid ${color1}|${color0} ${wireless_essid wlan2} ${wireless_link_qual_perc wlan2}%
  68. ${color0}${stippled_hr}
  69. ${color2}down ${color1}|${color0} ${downspeed wlan2}/s
  70. ${color4}${downspeedgraph wlan2 ff0000 0000ff}
  71. ${color2}up ${color1}|${color0} ${upspeed wlan2}/s
  72. ${color4}${upspeedgraph wlan2 0000ff ff0000}
  73. ${endif}\
  74. ${if_up eth0}\
  75. ${color2}if ${color1}|${color0} eth0:${addr eth0}
  76. ${color0}${stippled_hr}
  77. ${color2}down ${color1}|${color0} ${downspeed eth0}/s
  78. ${color4}${downspeedgraph eth0 ff0000 0000ff}
  79. ${color2}up ${color1}|${color0} ${upspeed eth0}/s
  80. ${color4}${upspeedgraph eth0 0000ff ff0000}
  81. ${endif}\
  82. ${if_up eth2}\
  83. ${color2}if ${color1}|${color0} eth2:${addr eth2}
  84. ${color0}${stippled_hr}
  85. ${color2}down ${color1}|${color0} ${downspeed eth2}/s
  86. ${color4}${downspeedgraph eth2 ff0000 0000ff}
  87. ${color2}up ${color1}|${color0} ${upspeed eth2}/s
  88. ${color4}${upspeedgraph eth2 0000ff ff0000}
  89. ${endif}\
  90. ${color0}${alignr}conky ${conky_version}
  91. ${color0}${hr}
  92. ${color3}${alignr}${texeci 10 bash -c 'xrandr|grep " connected "|cut -f 1,3 -d " "'}