Advertisement
orborbson

conky_pl

Apr 21st, 2024 (edited)
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.21 KB | None | 0 0
  1. #########################
  2. # - Główne ustawienia - #
  3. #########################
  4. update_interval 2
  5. total_run_times 0
  6. net_avg_samples 2
  7. cpu_avg_samples 2
  8.  
  9. imlib_cache_size 0
  10. double_buffer yes
  11. no_buffers yes
  12.  
  13. #########################
  14. # - Ustawienia tekstu - #
  15. #########################
  16. use_xft yes
  17. xftfont Ubuntu:size=9
  18. override_utf8_locale yes
  19. text_buffer_size 2048
  20.  
  21. #######################
  22. # - Ustawienia okna - #
  23. #######################
  24. own_window_class Conky
  25. own_window yes
  26. own_window_type normal
  27. own_window_transparent no
  28. own_window_argb_visual yes
  29. own_window_argb_value 230
  30. own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
  31.  
  32. alignment top_right
  33. gap_x 10
  34. gap_y 15
  35. minimum_size 182 0
  36. maximum_width 182
  37. default_bar_size 60 8
  38.  
  39. #######################
  40. # - Opcje graficzne - #
  41. #######################
  42. draw_shades yes
  43. default_color d9f8f6
  44.  
  45. TEXT
  46. System ${hr 2}
  47. ${goto 6}${voffset 6}${machine}
  48. ${goto 22}${voffset 6}Kernel: ${kernel}
  49. ${hr 2}
  50.  
  51. Czas & Data ${hr 2}
  52. ${font Arial Black:size=26}${voffset 6}${alignc}${time %H:%M}${font}
  53. ${font Arial Black:size=9}${voffset 4}${alignc}${time %a, %d %B %Y}${font}
  54.  
  55. CPU / Użycie ${hr 2}
  56. ${goto 22}${voffset 6}Core0:  ${color #FCAF3E}${alignc}[ ${cpu cpu1}% ]${color}${alignr}${color #FCAF3E}${exec awk 'BEGIN{i=0};/^cpu MHz/{if(i == 0){print int($4); exit}; i++}' /proc/cpuinfo} MHz${color}
  57. ${goto 22}${voffset 6}Core1:  ${color #FCAF3E}${alignc}[ ${cpu cpu2}% ]${color}${alignr}${color #FCAF3E}${exec awk 'BEGIN{i=0};/^cpu MHz/{if(i == 1){print int($4); exit}; i++}' /proc/cpuinfo} MHz${color}
  58.  
  59. Temperatury ${hr 2}
  60. ${goto 22}${voffset 6}CPU [0/1]: ${alignr}${color #FCAF3E}${execi 5 sensors -Au coretemp-isa-0000 | awk 'BEGIN{CPU=0;C0=0;C1=0};/temp1_input/{CPU=$2};/temp2_input/{C0=$2};/temp3_input/{C1=$2};END{printf("[%i/%i]  %i °C", C0, C1, CPU)}'}${color}
  61. ${goto 22}${voffset 6}GPU: ${alignr}${color #FCAF3E}${execi 5 sensors -Au radeon-pci-0100 | awk '/temp1_input/{print int($2)}'} °C${color}
  62. ${goto 22}${voffset 6}RAM: ${alignr}${color #FCAF3E}${execi 5 sensors -Au dell_smm-isa-0000 | awk '/temp3_input/{print int($2)}'} °C${color}
  63. ${goto 22}${voffset 6}HDD: ${alignr}${color #FCAF3E}${execi 5 sensors -Au drivetemp-scsi-0-0 | awk '/temp1_input/{print int($2)}'} °C${color}
  64. # ${goto 22}${voffset 6}HDD:${alignr}${color #FCAF3E}${execi 30 hddtemp /dev/sda -n --unit=C} °C${color}
  65.  
  66. Wentylatory ${hr 2}
  67. ${goto 22}${voffset 6}CPU/GPU [RPM]: ${alignr}${color #FCAF3E}${execi 5 sensors -Au dell_smm-isa-0000 | awk 'BEGIN{CPUFAN=0;GPUFAN=0};/fan1_input/{CPUFAN=$2};/fan2_input/{GPUFAN=$2};END{printf("%i | %i", CPUFAN, GPUFAN)}'}${color}
  68.  
  69. Dysk I/O ${hr 2}
  70. ${goto 22}${voffset 6}Odczyt: ${color #FCAF3E}${alignc}${diskio_read}${color}${alignr}${diskiograph_read 9,60 F57900 FCAF3E}
  71. ${goto 22}${voffset 6}Zapis: ${color #FCAF3E}${alignc}${diskio_write}${color}${alignr}${diskiograph_write 9,60 F57900 FCAF3E}
  72.  
  73. Różne Info ${hr 2}
  74. ${goto 22}${voffset 6}Pamięć: ${alignc}${color #FCAF3E}${mem}${color}${alignr}${membar 9,60}
  75. ${goto 22}${voffset 6}Swap: ${color #FCAF3E}${swapperc}%${color}${alignr}${swapbar 9,60}
  76. ${goto 22}${voffset 6}Czas działania: ${alignr}${uptime_short}
  77.  
  78. ${if_up usb0}Sieć (usb0) ${hr 2}
  79. ${goto 22}${voffset 6}UP: ${color #01cf31}${upspeedf usb0} KB/s${color} ${alignr}${upspeedgraph usb0 9,60 F57900 01cf31}
  80. ${goto 38}${voffset 4}Razem: ${totalup usb0}
  81. ${goto 22}${voffset 6}DL: ${color #ff2626}${downspeedf usb0} KB/s${color}${alignr}${downspeedgraph usb0 9,60 F57900 ff2626}
  82. ${goto 38}${voffset 4}Razem: ${totaldown usb0}
  83. ${goto 22}${hr 1}
  84. ${goto 22}${voffset 6}IP lokalne: ${color #2cc1ff}${alignr}${addr usb0}${color}${endif}
  85. ${if_up ppp0}Sieć (ppp0) ${hr 2}
  86. ${goto 22}${voffset 6}UP: ${color #01cf31}${upspeedf ppp0} KB/s${color} ${alignr}${upspeedgraph ppp0 9,60 F57900 01cf31}
  87. ${goto 38}${voffset 4}Razem: ${totalup ppp0}
  88. ${goto 22}${voffset 6}DL: ${color #ff2626}${downspeedf ppp0} KB/s${color}${alignr}${downspeedgraph ppp0 9,60 F57900 ff2626}
  89. ${goto 38}${voffset 4}Razem: ${totaldown ppp0}
  90. ${goto 22}${hr 1}
  91. ${goto 22}${voffset 6}IP lokalne: ${color #2cc1ff}${alignr}${addr ppp0}${color}${endif}
  92. ${if_up wlan0}Sieć (wlan) ${hr 2}
  93. ${goto 22}${voffset 6}UP: ${color #01cf31}${upspeedf wlan0} KB/s${color} ${alignr}${upspeedgraph wlan0 9,60 F57900 01cf31}
  94. ${goto 38}${voffset 4}Razem: ${totalup wlan0}
  95. ${goto 22}${voffset 6}DL: ${color #ff2626}${downspeedf wlan0} KB/s${color}${alignr}${downspeedgraph wlan0 9,60 F57900 ff2626}
  96. ${goto 38}${voffset 4}Razem: ${totaldown wlan0}
  97. ${goto 22}${hr 1}
  98. ${goto 22}${voffset 6}IP lokalne: ${color #2cc1ff}${alignr}${addr wlan0}${color}${endif}
  99.  
  100. Bateria ${hr 2}
  101. #${goto 22}${voffset 6}${battery}${alignr}${color #a2ff86}${battery_bar}${color}
  102. ${goto 22}${voffset 6}Stan: ${alignr}${color #FCAF3E}${execi 5 upower -i /org/freedesktop/UPower/devices/battery_BAT0 | awk 'BEGIN{PERC=0; STATE=""};/state/{STATE=$2}; /percentage/{PERC=$2};END{printf("%s (%s)\n", STATE, PERC)}'}${color}
  103. ${goto 22}${voffset 6}V/A: ${alignr}${color #FCAF3E}${execi 5 sensors -Au BAT0-acpi-0 | awk 'BEGIN{VOLT=0; CURR=0};/in0_input/{VOLT=$2};/curr1_input/{CURR=$2};END{printf("%.2fV  ~  %.3fA", VOLT, CURR)}'}${color}
  104. # ${goto 22}${voffset 6}Conn time: ${color #a2ff86}${alignr}${execi 15 ps h -o etime -C pppd}${color}
  105.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement