Pokaż swoje Conky - i podziel się konfiguracją


#1

Pewnie wszyscy widzieli - prosty config.

own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_colour 000000
own_window_class Conky
own_window_title Mabox Monitor Conky

gap_x 15
gap_y 50
alignment tr
minimum_width 200
minimum_size 200




use_xft yes
xftfont Cantarell:size=9
xftalpha 1
override_utf8_locale yes
draw_shades no #yes
default_shade_color 000000
draw_outline no
default_outline_color 000000


color2 777777
cpu_avg_samples  2
default_color FFFFFF

draw_borders no #yes

stippled_borders 5
border_inner_margin 5
border_outer_margin 0
border_width 2


background yes
no_buffers yes
imlib_cache_size 0

double_buffer yes
update_interval 1


TEXT
${voffset 8}$color${font Cantarell:size=16}${time %A}$font${voffset -18}$alignr${color 006600}${font Cantarell:size=38}${time %e}$font
$color${voffset -20}$color${font Cantarell:size=18}${time %B}$font${voffset -1} $color${font Cantarell:size=20}${time %Y}$font

${voffset 10}${goto 40}${color}CPU$alignr$cpu%
$color2${goto 40}$alignr${cpubar 4,165}
${voffset 5}${goto 40}$font$color2${top name 1}$alignr$color${top cpu 1}%
${goto 40}$color2${top name 2}$alignr$color${top cpu 2}%
${goto 40}$color2${top name 3}$alignr$color${top cpu 3}%
${goto 40}$color2${top name 4}$alignr$color${top cpu 4}%
#
${voffset 10}${goto 40}${color}RAM$alignr$mem/$memmax
$color2${goto 40}$alignr${membar 4,165}
${goto 40}${voffset 5}$color2${top_mem name 1}$alignr$color${top_mem mem_res 1}
${goto 40}$color2${top_mem name 2}$alignr$color${top_mem mem_res 2}
${goto 40}$color2${top_mem name 3}$alignr$color${top_mem mem_res 3}
${goto 40}$color2${top_mem name 4}$alignr$color${top_mem mem_res 4}
#
${voffset 10}$alignr dysk ${color2}${fs_used /} - ${fs_size /}
$alignr$color pamięć ${color2}$mem - $memmax
#${alignr}${color2}${font Cantarell:size=9}swap $swapmax - $swap
#
${voffset 10}$alignr${color} Mabox Linux ${execi 10000 awk -F'=' '/DISTRIB_RELEASE=/ {printf $2" "} /CODENAME/ {print $2}' /etc/lsb-release}
#
${voffset 10}$alignr${execi 1200 whoami}@${nodename}
${alignr}${color2}${font Cantarell:size=9}uptime ${color}${uptime_short}
${alignr}${color2}${font Cantarell:size=9}${alignr}jądro ${color}${kernel}
${alignr}${color2}${font Cantarell:size=9}${alignr}arch ${color}${machine}
${alignr}${color2}${font Cantarell:size=9}${alignr}system plików ${color}${fs_type}
${voffset 10}${alignr}${color} dostępne aktualizacje ${color 006600}${font Cantarell:bold:size=10}${execpi 10800 checkupdates | wc -l}${font}${color}
${alignr}${color} zainstalowane pakiety: ${color2}${execi 10000 pacman -Q | wc -l}

#2

Mój config conky także nie jest zbytnio skomplikowany.

xftfont Bold:size=9
xftalpha 0.1
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_argb_visual yes
# When ARGB visuals are enabled, use this to modify the alpha value used.
# Valid range is 0-255, where 0 (zero) is 0% opacity, and 255 is 100% opacity.
own_window_argb_value 0
own_window_type panel
own_window_type desktop
own_window_hints undecorated,sticky,below,skip_taskbar,skip_pager
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 300 300
maximum_width 300

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# Border margins
#border_margins 5

# Border width
border_width 1

# Default colors and also border colors
default_color 0A960F
default_shade_color 0A960F
default_outline_color 0A960F
own_window_colour 000000
#default_color d8d8d8
color1 0998ED
color2 C37D0E
color3 0EB3C3

# Text alignment, other possible values are commented
#alignment top_left
#alignment top_right
#alignment bottom_left
alignment top_right

# Gap between borders of screen and text
#same thing as passing -x at command line
gap_x 5
gap_y 0

# Subtract file system buffers from used memory?
no_buffers yes

# Set to yes if you want all text to be in uppercase
uppercase no

# Number of cpu samples to average
#set to 1 to disable averaging
cpu_avg_samples 1

# Number of net samples to average
#set to 1 to disable averaging
net_avg_samples 1

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer none

TEXT
#${alignr}${font Ubuntu:pixelsize=26}${desktop}${font}
##########
# SYSTEM #
##########
${voffset -15}${image /home/robson/.conky/Logo.png -p 0,0 -s 38x38}${image /home/robson/.conky/Logo.png -p 260,0 -s 38x38}
${color3}${font Roboto Black:size=20}$alignc${time %H:%M:%S}
${voffset -15}${font Roboto Black:size=14}$alignc${time %A} ${time %d} ${time %B} ${time %Y}
${color1}${voffset -12}${font Roboto Black:size=9}${scroll 44 2 ${execi 1200 whoami}@${nodename}-$sysname $kernel $machine}
${voffset 0}${font Roboto Black:size=10}${color2}SYSTEM $color$font Arch  Xfce                                 ${execi 10000 awk -F'=' '/DISTRIB_RELEASE=/ {printf $2" "} /CODENAME/ {print $2}' /etc/lsb-release}
${voffset -4}${font Play :Bold:size=11}$sysname kernel: $font$kernel$alignr$machine
${voffset -4}${font Play :Bold:size=11}Czas działania: $font$alignr$uptime
${voffset -4}${font Play :Bold:size=11}Temperatura gpu: $font$alignr${execi 30 sensors | grep 'temp1:' | cut -c16-19}${color0}°C
${voffset -4}${font Play :Bold:size=11}${color}Pakiety do aktualizacji: $font${alignr 8}${color1}${execpi 80 checkupdates | wc -l}${color}
${voffset -4}${font Play :Bold:size=11}Pakiety zainstalowane: $font$alignr${execi 20 pacman -Q | wc -l}
${voffset -4}${font Play :Bold:size=11}Ostatnia aktualizacja: $font$alignr${voffset 1}${execi 20 grep "starting full system upgrade" /var/log/pacman.log | tail -n1| cut --bytes=2-17}
##########
# CPU #
##########
${voffset -3}${font Roboto Black:size=10}${color2}CPU${color}${font} Intel Core 4x i3-2100 CPU@3.10GHz $acpitemp${color0}°C  
#Core 1 - ${execi 2 sensors | grep 'Core 1' | cut -c17-20}°C ${alignc 60}${cpubar cpu1}${color}
#Core 2 - ${execi 2 sensors | grep 'Core 2' | cut -c17-20}°C ${alignc 60}${cpubar cpu2}${color}
${alignc 30}${voffset -5}${cpugraph 1 20,148 0000ff 00ff00 -t}${alignr}${cpugraph 2 20,148 0000ff 00ff00 -t}
${color0}${alignc 50}${voffset -10}${cpubar cpu1 5,148}${alignr}${cpubar cpu2 5,148}
${alignc 30}${voffset -6}${color}${font Play :Bold:size=11}Core 1 $font${cpu cpu1}% ${alignr 30}${voffset -3}${font Play :Bold:size=11}Core 2 $font${cpu cpu2}%
####################
${font Roboto Black:size=10}${color2}USAGE${font Roboto Black:size=10}${color2}${alignr 48}RAM${color2}${alignr 18}${font Roboto Black:size=10}CPU
${font :Bold:size=10}${color1}${top name 1}${voffset -3}$font$alignr${top cpu 1} %
${voffset -16}$alignr${voffset 2}${offset -60}${top mem 1} %
${font :Bold:size=10}${top name 2}${voffset -3}$font$alignr${top cpu 2} %
${voffset -16}$alignr${voffset 2}${offset -60}${top mem 2} %
${font :Bold:size=10}${top name 3}${voffset -3}$font$alignr${top cpu 3} %
${voffset -16}$alignr${voffset 2}${offset -60}${top mem 3} %
${font :Bold:size=10}${top name 4}${voffset -3}$font$alignr${top cpu 4} %
${voffset -16}$alignr${voffset 2}${offset -60}${top mem 4} %
${font :Bold:size=10}${top name 5}${voffset -3}$font$alignr${top cpu 5} %
${voffset -16}$alignr${voffset 2}${offset -60}${top mem 5} %
${font :Bold:size=10}${top name 6}${voffset -3}$font$alignr${top cpu 6} %
${voffset -16}$alignr${voffset 2}${offset -60}${top mem 6} %
##########
# MEMORY #
##########
${voffset 0}${font Roboto Black:size=10}${color2}MEMORY $font${color}$memperc% ${color0}${membar 5}
${voffset -10}${color}$hr
${color}${font Play :Bold:size=11}${voffset -7}Used: $font$mem of $memmax$alignr${font Play :Bold:size=11}${voffset -3}Free: $font$memeasyfree$alignr
${font Play :Bold:size=11}${voffset -2}Buffer: $font$buffers$alignr${font Play :Bold:size=11}${voffset -4}Cache: $font$cached$alignr
${voffset -15}${color}${voffset 5}$hr
${font :Bold:size=10}${color1}${top_mem name 1}$font$alignr${top_mem mem_res 1}
${voffset -17}${alignr}
${font :Bold:size=10}${top_mem name 2}$font$alignr${top_mem mem_res 2}
${voffset -17}${alignr}
${font :Bold:size=10}${top_mem name 3}$font$alignr${top_mem mem_res 3}
${voffset -17}${alignr}
${font :Bold:size=10}${top_mem name 4}$font$alignr${top_mem mem_res 4}
${voffset -17}${alignr}
${font :Bold:size=10}${top_mem name 5}$font$alignr${top_mem mem_res 5}
${voffset -17}${alignr}
${font :Bold:size=10}${top_mem name 6}$font$alignr${top_mem mem_res 6}
${voffset -17}${alignr}
##########
# HDD #
##########
${voffset 0}${font Roboto Black:size=10}${color2}DISC ${color}$font sda: ${execi 3600 cat /sys/block/sda/device/model || echo "none"} ${if_match "${hddtemp /dev/sda}"<="40" }${color 0A960F}$else${if_match "${hddtemp /dev/sda}"<="50" }${color orange}$else${color red}${font :Bold:size=10}UWAGA! $endif$endif${hddtemp /dev/sda}${color0}°C ${voffset 0}${alignr}${diskiograph /dev/sda 8,60 F57900 FCAF3E}
#home
${color}${voffset -3}${font Play :Bold:size=11}Home used: (${fs_type /}) $font${fs_used /} of ${fs_size /} ${color}  ${fs_used_perc /} % ${color0}
#boot
${color}${voffset -3}${font Play :Bold:size=11}Boot used: (${fs_type /boot/}) $font${fs_used /boot/} of ${fs_size /boot/} ${color}  ${fs_used_perc /boot/} % ${color0}
$color${voffset -3}${font Play :Bold:size=11}write: $font${diskio_write /dev/sda}${alignc}${voffset -4}${font Play :Bold:size=11}read: $font${diskio_read /dev/sda}
#swap
${voffset -3}${font Play :Bold:size=11}Swap used: $font$swap of $swapmax ${color}$alignr$swapperc% ${color0}${swapbar 7,60}
##########
# NETWORK #
##########
${voffset 0}${font Roboto Black:size=10}${color2}NETWORK ${execpi 4 echo "\${font}\${color} (ping: \${font Roboto Black:size=10}\${color #66aaff}$(ping -W 1 -c 1 8.8.8.8 -q | grep rtt | egrep [0-9]+\.[0-9]+ -o | head -n 2 | tail -n 1)\${font}\${color} ms"})
${voffset -4}${color1}${font Roboto Black:size=10}External IP ${font}${alignr}${execi 10600  curl -s www.icanhazip.com}
#####################
#Wykrywanie karty sieciowej
${voffset 2}${color}Network connected $hr
${if_existing /proc/net/route enp0s26u1u2}
${voffset -28}${font}${alignr}
${color}↓Pobrane: ${downspeedf enp0s26u1u2} kB/s $alignr${totaldown enp0s26u1u2}
${voffset -14}${alignc -40}${color0}${downspeedgraph enp0s26u1u2 8,85 000000 aaddff}
${color}↑Wysłane: ${upspeedf enp0s26u1u2} kB/s $alignr${totalup enp0s26u1u2}
${voffset -14}${alignc -40}${color0}${upspeedgraph enp0s26u1u2 8,85 000000 aaddff}
#
${else}${if_existing /proc/net/route enp0s26u1u2}
#
${voffset -28}${font}${alignr}
${color}↓Pobrane: ${downspeedf enp0s26u1u2} kB/s $alignr${totaldown enp0s26u1u2}
${voffset -14}${alignc -40}${color0}${downspeedgraph enp0s26u1u2 8,85  000000 66aaff}
${color}↑Wysłane: ${upspeedf enp0s26u1u2} kB/s $alignr${totalup enp0s26u1u2}
${voffset -14}${alignc -40}${color0}${upspeedgraph enp0s26u1u2 8,85  000000 aaddff}
#
${else}${if_existing /proc/net/route enp0s26u1u2}
#
${voffset -28}${font}${alignr}
${color}↓Pobrane: ${downspeedf enp0s26u1u2} kB/s $alignr${totaldown enp0s26u1u2}
${voffset -14}${alignc -40}${color0}${downspeedgraph enp0s26u1u2 8,85  000000 66aaff}
${color}↑Wysłane: ${upspeedf enp0s26u1u2} kB/s $alignr${totalup enp0s26u1u2}
${voffset -14}${alignc -40}${color0}${upspeedgraph enp0s26u1u2 8,85  000000 aaddff}
${endif}${endif}${endif}
#Koniec wykrywania karty sieciowej
${voffset -25}${color}$hr

I jeszcze pytanie do admina, jak na tym forum się dodaje znaczniki code.


#3

Znaczniki code dodajemy za pomocą trzech znaków ```
na początku i na końcu.

Generalnie w edytorze działa markdown.
Tutaj masz wprowadzenie do markdown -> http://abclinuksa.pl/books/markdown_html/


#4

jak się chwalą to ja też :wink:

configów za dużo coby wstawiać ale tutaj są:


#5

Małe skromne, ale własne


# WINDOW
own_window yes
own_window_type desktop
own_window_transparent no
own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky
own_window_colour 000000
own_window_argb_visual yes
own_window_argb_value 60
#own_window_class Conky
own_window_title Weater Conky

gap_x 55
gap_y 85
#minimum_width 250
minimum_size 250 0  ### w|h
alignment top_right

# FONTS

use_xft yes
xftalpha 1
xftfont Monospace:size=11
override_utf8_locale yes

# COLORS
draw_shades no #yes
default_shade_color 000000
draw_outline no
default_outline_color 000000

#default_color 656667 # Waldorf original colour
#default_color 7a7a7a # Flame  & Bunsen Grey
#default_color 929292 # Labs Grey
#default_color C0C0C0 # Silver
#default_color FFFFFF
color0 B0E0E6 # PowderBlue
color1 778899 # LightSlateGray
#color2 D8BFD8 # Thistle
color2 FFFFFF
color3 9ACD32 # YellowGreen
color4 FFA07A # LightSalmon
color5 FFDEAD # NavajoWhite
color6 00BFFF # DeepSkyBlue
color7 5F9EA0 # CadetBlue
color8 BDB76B # DarkKhaki
color9 000000 # IndianRed

# BORDERS
draw_borders no #yes
# Stippled borders?
stippled_borders 5
# border margins
border_inner_margin 15
border_outer_margin 15
# border width
border_width 2
# graph borders
# draw_graph_borders yes
# default_graph_size 15 40

# MISC

# Boolean value, if true, Conky will be forked to background when started.
background no

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer none

# Subtract (file system) buffers from used memory?
no_buffers yes

# Imlib2 image cache size, in bytes. Default 4MiB Increase this value if you use
# $image lots. Set to 0 to disable the image cache.
imlib_cache_size 0

# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes

update_interval 1.0

TEXT
${color2}${texeci 1800 curl pl.wttr.in/radomsko?0 | sed -n '3,7{s/\d27\[[0-9;]*m//g;s/^..//;s/ *$//;p}'}


${alignc}S Y S T E M    I N F O
${membar 0}
${color0}Host:${alignr}${nodename}
Uptime:${alignr}${uptime}
${color3}RAM:$alignr${mem} / ${memmax}
${goto 40}$alignr${membar 5,170}
${color4}CPU:${alignr}${cpu cpu0}%
${goto 40}$alignr${cpubar 5,170}
CPU 1:${alignr}${hwmon 0 temp 1}°C
CPU 2:${alignr}${hwmon 1 temp 1}°C
CPU 3:${alignr}${hwmon 2 temp 1}°C

${alignc}${color2}D I S K
${membar 0}
${color6}Root:$alignr${fs_used /} / ${fs_size /}
Home:$alignr${fs_used /home} / ${fs_size /home}
Disk1:${alignr}${fs_used /run/media/ulther/DATA} / ${fs_size /run/media/ulther/DATA}
Disk2:${alignr}${fs_used /run/media/ulther/DATA2} / ${fs_size /run/media/ulther/DATA2}

#6

@UltherEgo fajna sprawa z wykorzystaniem wttr.in do pokazania info o pogodzie :slight_smile:


#7

Jeśli ktoś chce widzieć w Conky ilość dostępnych aktualizacji, a używa Pamac to podaję zaklęcia:

  1. Tylko paczki z repozytoriów:
${execpi 1800 pamac checkupdates -q | wc -l}
  1. Również dostępne aktualizacje z AUR:
${execpi 1800 pamac checkupdates -aq | wc -l}

W obu przypadkach sprawdzanie odbywa się co 30 minut (1800 sekund).