Guest User

conky config to get sytem info on desktop

a guest
Aug 2nd, 2023
581
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.50 KB | Software | 0 0
  1. conky.config = {
  2. -- Conky settings #
  3.     background = false,
  4.     update_interval = 1,
  5.  
  6.     cpu_avg_samples = 2,
  7.     net_avg_samples = 2,
  8.  
  9.     override_utf8_locale = true,
  10.  
  11.     double_buffer = true,
  12.     no_buffers = true,
  13.  
  14.     text_buffer_size = 2048,
  15. --imlib_cache_size 0
  16.  
  17.  
  18. -- Window specifications #
  19.     own_window_class = 'Conky',
  20.     own_window = true,
  21.     own_window_type = 'desktop',
  22.     own_window_transparent = true,
  23.     own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
  24.  
  25.     border_inner_margin = 0,
  26.     border_outer_margin = 5,
  27.  
  28.     minimum_width = 280, minimum_height = 1080,
  29.     maximum_width = 520, minimum_height = 1080,
  30.  
  31.     alignment = 'middle_right',
  32.     gap_x = 5,
  33.     gap_y = -60,
  34.  
  35. -- Graphics settings #
  36.     draw_shades = false,
  37.     draw_outline = false,
  38.     draw_borders = false,
  39.     draw_graph_borders = true,
  40.  
  41. -- Text settings #
  42.     use_xft = true,
  43.     font = 'Roboto Light:style=Regular:size=9',
  44.     xftalpha = 0.5,
  45.  
  46.     uppercase = false,
  47.  
  48. --  temperature_unit = 'fahrenheit',
  49.     temperature_unit = 'celsius',
  50.  
  51.     -- default_color = 'FFFFFF',
  52.     -- color0 = 'FFFFFF',
  53.     -- color1 = '88c0d0',
  54.     default_color = 'ffffff',
  55.     color0 = 'ffffff',
  56.     color1 = '88c0d0',
  57.  
  58.  
  59.     own_window_argb_value = 0,
  60.     own_window_argb_visual = true,
  61.     own_window_colour = '000000',
  62.  
  63. -- network templates
  64.     if_up_strictness = 'address',
  65.  
  66. };
  67.  
  68. conky.text = [[
  69. #----------------------------------------------------------------------------------------------------------------------------------------
  70. #----------------------------------------------------------------------------------------------------------------------------------------
  71.  
  72. #----------------------------------------------------------------------------------------------------------------------------------------
  73. #                              Uptime,Battery ,Network
  74. #----------------------------------------------------------------------------------------------------------------------------------------
  75. ${color1}${hr 5}$color
  76. ${font OpenSans:bold:size=10}${color1}${voffset 6}Temp: $color ${if_existing /sys/class/thermal/thermal_zone0/temp}${eval ${acpitemp}}${else} ${endif}°C
  77. ${font OpenSans:bold:size=10}${color1}${voffset 6}Processes:$color $processes    
  78. ${color1}${voffset 10}Frequency:$color ${freq}MHz
  79. ${color1}${voffset 13}Uptime:  $color0${uptime}
  80. ${color1}${voffset 16}Battery:  $color0${battery_percent BAT1}%
  81.  
  82. ${color FFFFFF}${goto 09}${voffset 04}\
  83. ${font OpenSans:bold:size=10}${color1}NETWORK ${color White}${hr 2}
  84. $font${color White}IP Address: $alignr ${addr wlp8s0}
  85. ${hr 2}
  86. Down- $alignr ${downspeed wlp8s0} /s
  87. Up- $alignr ${upspeed wlp8s0} /s
  88. ${hr 2}
  89. Downloaded: $alignr ${totaldown wlp8s0}
  90. Uploaded: $alignr ${totalup wlp8s0}
  91.  
  92.  
  93. #----------------------------------------------------------------------------------------------------------------------------------------
  94. #                  RAM and Storage usage
  95. #----------------------------------------------------------------------------------------------------------------------------------------
  96. ${color1}${voffset 0}${hr 5}
  97. ${color FFFFFF}${goto 7}${voffset 5}${fs_used_perc /}%
  98. ${color1}${goto 7}DISK
  99. ${color FFFFFF}${goto 102}${voffset -35}${memperc}%
  100. ${color1}${goto 102}RAM
  101. ${color FFFFFF}${goto 192}${voffset -35}${cpu}%
  102. ${color1}${goto 192}CPU
  103.  
  104.  
  105. ${color1}SDD : ${alignr}$color${fs_used /} / ${fs_size /home}(${fs_used_perc}%)
  106. ${color1}${fs_bar 20 /home}
  107. ${color1}HDD : ${alignr}$color${fs_used /mnt/hdd} / ${fs_size /mnt/hdd}(${fs_used_perc /mnt/hdd}% )
  108. ${color1}${fs_bar 20 /mnt/hdd}
  109. #${color1}CPU 1${alignr}$color${cpu cpu1 \1}%
  110. #${cpugraph cpu1 \1 000000 88c0d0}
  111. #${color1}CPU 2${alignr}$color${cpu cpu2 \1}%
  112. #${cpugraph cpu2 \1 000000 88c0d0}
  113. #----------------------------------------------------------------------------------------------------------------------------------------
  114. #                      Running processes
  115. #----------------------------------------------------------------------------------------------------------------------------------------
  116. ${color1}${voffset 5}NAME${goto 122}PID${goto 183}CPU%${goto 230}MEM%$color${voffset 5}
  117. ${top name 1}${goto 115}${top pid 1}${goto 180}${top cpu 1}${goto 230}${top mem 1}
  118. ${top name 2}${goto 115}${top pid 2}${goto 180}${top cpu 2}${goto 230}${top mem 2}
  119. ${top name 3}${goto 115}${top pid 3}${goto 180}${top cpu 3}${goto 230}${top mem 3}
  120. ${top name 4}${goto 115}${top pid 3}${goto 180}${top cpu 4}${goto 230}${top mem 4}
  121. ${top name 5}${goto 115}${top pid 3}${goto 180}${top cpu 5}${goto 230}${top mem 5}
  122. ${top name 6}${goto 115}${top pid 6}${goto 180}${top cpu 6}${goto 230}${top mem 6}
  123. ${top name 7}${goto 115}${top pid 7}${goto 180}${top cpu 7}${goto 230}${top mem 7}
  124. ${top name 8}${goto 115}${top pid 8}${goto 180}${top cpu 8}${goto 230}${top mem 8}
  125. ${top name 9}${goto 115}${top pid 9}${goto 180}${top cpu 9}${goto 230}${top mem 9}
  126. ${top name 10}${goto 115}${top pid 10}${goto 180}${top cpu 10}${goto 230}${top mem 10}
  127. #----------------------------------------------------------------------------------------------------------------------------------------
  128. #                        Computer info
  129. #----------------------------------------------------------------------------------------------------------------------------------------
  130. ${color1}${voffset 52}${hr 5}${voffset 5}
  131. ${color1}Hostname:$color${alignr}${nodename}
  132. ${color1}OS:$color${alignr}${exec cat /etc/issue}${color1}Machine:$color${alignr}${machine}
  133. ${color1}Kernel:$color${alignr}${kernel}
  134. ]];
  135.  
  136.  
  137.  
Tags: conky
Advertisement
Add Comment
Please, Sign In to add comment