Sada je: 05 pro 2020, 16:24.
Razmjena savjeta i trikova o podešavanju sustava i programa.

Moderator/ica: Moderatori/ce

Može se i s alignr (hint: prima argument - broj razmaka), ali i ne mora. Gledam svoj conkyrc i nemam ni jedan goto, a sve je poravnato. Nekad sam koristio offset i voffset jer u fontu nisam imao ° pa sam koristio točku koju je trebalo staviti na mjesto ° :) Ima više načina, pa kako kome paše.

U biti krivo sam napisao u onom postu prije, ne poravnavaš barove s align nego tekst. A barovima staviš fiksnu dužinu (također primaju brojčane argumente) i njih indirektno poravnaš pomoću teksta odnosno razmaka. Može se na više načina to srediti, ja sam s alignr poravnao tekst iza barova (imam tekst ispred i iza barova). Sve je lakše ako se koristi neki od monospace fontova jer onda možeš poravnavati i s razmacima.

Trebalo bi se skoncentrirati i napisati točne upute, ovo su samo natuknice iz sjećanja.
1986-1990: Commodore64 / 1990-1994: Amiga 500 / 1995-1996: Amiga 1200 / 1997-2001: N/A@home /
2002-2004: Windows98, XP /
2004-2005: Knoppix, Mandrake / 2005: Mandriva, Ubuntu / 2005-2009: LFS / 2009-2010: Mint /
2010-... Arch
Avatar
Moderator
Postovi: 3293
Moderator
Postovi: 3293
Pridružen/a: 01 pro 2010, 23:50
Lokacija: Nova Gradiška
Podijelio/la zahvalu: 122 puta
Primio/la zahvalu: 156 puta
OS: Arch/KDE, Debian/Armbian
Može se da da baru pridruži vrijednosti dužine i visine. To sam ja na svom napravio, + goto.
hrc
Postovi: 519
Postovi: 519
Pridružen/a: 09 tra 2013, 23:14
Podijelio/la zahvalu: 2 puta
Primio/la zahvalu: 13 puta
Spol: M
OS: Debian
Stavit ću screenshot i conkyrc sutra (ako ne zaboravim). Ne izgleda nešto posebno jer je samo info, tekst i barovi.
1986-1990: Commodore64 / 1990-1994: Amiga 500 / 1995-1996: Amiga 1200 / 1997-2001: N/A@home /
2002-2004: Windows98, XP /
2004-2005: Knoppix, Mandrake / 2005: Mandriva, Ubuntu / 2005-2009: LFS / 2009-2010: Mint /
2010-... Arch
Avatar
Moderator
Postovi: 3293
Moderator
Postovi: 3293
Pridružen/a: 01 pro 2010, 23:50
Lokacija: Nova Gradiška
Podijelio/la zahvalu: 122 puta
Primio/la zahvalu: 156 puta
OS: Arch/KDE, Debian/Armbian
Evo moje ružnjikave, ali informativne Conky konfiguracije. Nakupilo se tu svega tokom godina. Ima zakomentiranih redaka, ali neka ih, možda nekom pomognu. Recimo, zakomentirana je nvidia jer sad imam Ati.
CPU Temperature i FAN speed mijenjaju boju ovisno o vrijednostima. Vjerojatno sve skupa može biti i elegantnije napisano, ali taj fajl je nastajao godinama i nikad se nisam potrudio napraviti nešto ljepše :)

Font je Terminus i sve skupa neće dobro izgledati ako font nije monospace.


slika

Kod: Označi sve
# Conky sample configuration
#
# the list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.

# set to yes if you want Conky to be forked in the background
# background yes

# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -misc-fixed-medium-r-normal-*-14-*-*-*-*-*-iso8859-2
# Use Xft?
use_xft yes

# Xft font when Xft is enabled
#xftfont smoothansi
xftfont terminus-8

# Text alpha when using Xft
xftalpha 0.3

# Print everything to stdout?
# out_to_console no

# MPD host/port
# mpd_host localhost
# mpd_port 6600
# mpd_password tinker_bell

# Print everything to console?
# out_to_console no

# mail spool
# mail_spool $MAIL

# Update interval in seconds
update_interval 1.0

# 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

# If own_window is yes, you may use type normal, desktop or override
own_window_type normal

# Use pseudo transparency with own_window?
own_window_transparent no
own_window_argb_visual yes
own_window_argb_value 30

# If own_window_transparent is set to no, you can set the background colour here
#own_window_colour hotpink

# If own_window is yes, these window manager hints may be used
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
# minimum_size 250 5

maximum_width 170

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Draw borders around graphs
draw_graph_borders yes

# Stippled borders?
#stippled_borders 8

# border margins
border_inner_margin 4

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color black

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

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

# 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

# Allow for the creation of at least this number of port monitors (if 0 or not set, default is 16)
#min_port_monitors 16

# Allow each port monitor to track at least this many connections (if 0 or not set, default is 256)
#min_port_monitor_connections 256

# none, xmms, bmp, audacious, infopipe (default is none)
#xmms_player none

# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument


# cool palette

#color0 0050D0
#color1 100020
#color2 00D050
#color3 102000
#color4 FF4060
#color5 B0D0FF
#color9 2090FF


# warm palette

color0 D05000
color1 200010
color2 50D000
color3 002010
color4 6040FF
color5 FFD0B0
color9 FF9020


# stuff after 'TEXT' will be formatted on screen

TEXT
${color9}${alignc}HOST ${nodename}
${alignc}${sysname} ${kernel} ${machine}

${alignc}Uptime ${uptime}
${hr 2}
# CPU
${color5}${alignc}CPU
${color9}CPU1  ${cpubar cpu1 6,100} ${alignr}${cpu cpu1}%
${color0}Frequency ${alignr}${freq_g 1} GHz
#${color9}${cpugraph cpu1 20,170 100020 2090FF}
${color9}${cpugraph cpu1 20,170 200010 FF9020}
${color9}CPU2  ${cpubar cpu2 6,100} ${alignr}${cpu cpu2}%
${color0}Frequency ${alignr}${freq_g 2} GHz
#${color9}${cpugraph cpu2 20,170 100020 2090FF}
${color9}${cpugraph cpu2 20,170 200010 FF9020}
# CPU FREQUENCY COLOR
#${if_match ${freq} == 800}${color4}Frequency ${alignr}${freq} MHz$endif${if_match ${freq} == 1600}${color green}Frequency ${alignr}${freq_g} GHz$endif${if_match ${freq} == 1800}${color yellow}Frequency ${alignr}${freq_g} GHz$endif${if_match ${freq} == 2000}${color OrangeRed}Frequency ${alignr}${freq_g} GHz$endif${if_match ${freq} == 2100}${color red}Frequency ${alignr}${freq_g} GHz$endif
#${color5}Frequency ${alignr}${freq_g} GHz
# CPU TEMPERATURE
#${if_match ${acpitemp} < 45}${color4}Temperature ${alignr}${acpitemp} C${endif}${if_match ${acpitemp} >= 45}${if_match ${acpitemp} < 55}${color green}Temperature ${alignr}${acpitemp} C${endif}${endif}${if_match ${acpitemp} >= 55}${if_match ${acpitemp} < 65}${color yellow}Temperature ${alignr}${acpitemp} C${endif}${endif}${if_match ${acpitemp} >= 65}${if_match ${acpitemp} < 75}${color OrangeRed}Temperature ${alignr}${acpitemp} C${endif}${endif}${if_match ${acpitemp} >= 75}${if_match ${acpitemp} < 85}${color red}Temperature ${alignr}${acpitemp} C${endif}${endif}${if_match ${acpitemp} >= 85}${color red}${blink Temperature}${alignr}${acpitemp} C${endif}
${if_match ${hwmon 0 temp 2} < 45}${color4}Temperature ${alignr}${hwmon 0 temp 2} C${endif}${if_match ${hwmon 0 temp 2} >= 45}${if_match ${hwmon 0 temp 2} < 55}${color green}Temperature ${alignr}${hwmon 0 temp 2} C${endif}${endif}${if_match ${hwmon 0 temp 2} >= 55}${if_match ${hwmon 0 temp 2} < 65}${color yellow}Temperature ${alignr}${hwmon 0 temp 2} C${endif}${endif}${if_match ${hwmon 0 temp 2} >= 65}${if_match ${hwmon 0 temp 2} < 75}${color OrangeRed}Temperature ${alignr}${hwmon 0 temp 2} C${endif}${endif}${if_match ${hwmon 0 temp 2} >= 75}${if_match ${hwmon 0 temp 2} < 85}${color red}Temperature ${alignr}${hwmon 0 temp 2} C${endif}${endif}${if_match ${hwmon 0 temp 2} >= 85}${color red}${blink Temperature}${alignr}${hwmon 0 temp 2} C${endif}
# font with ° (terminus-8...)
${offset 158}${voffset -12}°
# font without ° (smoothansi...)
#${offset 157}${voffset -20}.${voffset 7}
# CPU FAN
${if_match ${hwmon 1 fan 2} < 500}${color4}FAN speed ${alignr}${hwmon 1 fan 2} rpm${endif}${if_match ${hwmon 1 fan 2} >= 500}${if_match ${hwmon 1 fan 2} < 1000}${color green}FAN speed ${alignr}${hwmon 1 fan 2} rpm${endif}${endif}${if_match ${hwmon 1 fan 2} >= 1000}${if_match ${hwmon 1 fan 2} < 1500}${color yellow}FAN speed ${alignr}${hwmon 1 fan 2} rpm${endif}${endif}${if_match ${hwmon 1 fan 2} >= 1500}${if_match ${hwmon 1 fan 2} < 2000}${color OrangeRed}FAN speed ${alignr}${hwmon 1 fan 2} rpm${endif}${endif}${if_match ${hwmon 1 fan 2} >= 2000}${color red}FAN speed ${alignr}${hwmon 1 fan 2} rpm${endif}
# TOP CPU
${color5}${alignc}TOP CPU${color9}
${top name 1}${alignr}${top cpu 1}%
${top name 2}${alignr}${top cpu 2}%
${top name 3}${alignr}${top cpu 3}%
${top name 4}${alignr}${top cpu 4}%
${color9}${hr 2}
#${color5}${alignc}nVidia${color9}
#GPU frequency ${alignr}${nvidia gpufreq} MHz
#MEM frequency ${alignr}${nvidia memfreq} MHz
#GPU temperature ${alignr}${nvidia temp}.0 C
#${offset 158}${voffset -12}°
##${offset 157}${voffset -20}.${voffset 7}
#AMBIENT temperature ${alignr}${nvidia ambient} C
#${offset 158}${voffset -12}°
##${offset 157}${voffset -20}.${voffset 7}
#${color9}${hr 2}
${color5}${alignc}GPU${color9}
Temperature ${alignr}${execi 5 aticonfig --od-gettemperature | grep Temperature | cut -c43-44}°C
FAN speed ${alignr}${execi 5 aticonfig --pplib-cmd "get fanspeed 0" | grep -i result | gawk {'print $4'}}
Core frequency ${alignr}${execi 5 aticonfig --od-getclocks | grep "Current Clocks" | gawk {'printf $4'}} MHz
MEM frequency ${alignr}${execi 5 aticonfig --od-getclocks | grep "Current Clocks" | gawk {'printf $5'}} MHz
${color9}${hr 2}
# HDD
${color5}HDD${alignr}${diskio}${color9}
#${diskiograph 20,170 100020 2090FF}
${diskiograph 20,170 200010 FF9020}
/     ${fs_bar 6,100 /}${alignr}${fs_used_perc}%
${alignc}${fs_size /} - ${fs_used /} - ${fs_free /}
data  ${fs_bar 6,100 /mnt/data}${alignr}${fs_used_perc /mnt/data}%
${alignc}${fs_size /mnt/data} - ${fs_used /mnt/data} - ${fs_free /mnt/data}
${hr 2}
# MEM USAGE
${color5}${alignc}MEM${color9}
RAM   ${membar 6,100}${alignr}${memperc}%
${color0}SWAP  ${swapbar 6,100}${alignr}${swapperc}%
${color5}${alignc}TOP MEM${color9}
${top_mem name 1}${alignr}${top_mem mem 1}%
${top_mem name 2}${alignr}${top_mem mem 2}%
${top_mem name 3}${alignr}${top_mem mem 3}%
${top_mem name 4}${alignr}${top_mem mem 4}%
${hr 2}
#${if_up eth0}${color5}${alignc}NETWORK${color9}
#Up${alignr}${upspeedf eth0}kB/s :: ${totalup eth0}
#${upspeedgraph eth0 20,170 100020 2090FF}
#Down${alignr}${downspeedf eth0}kB/s :: ${totaldown eth0}
#${downspeedgraph eth0 20,170 100020 2090FF}
#${color0}Local  IP:${alignr}${addr eth0}
##Public IP:${alignr}${execi 3600 wget -O - http://whatismyip.org/ | tail}
#${color0}Public IP:${alignr}${execi 3600 wget http://checkip.dyndns.org/ -q -O - | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'}
#${endif}
${if_up wlan0}${color5}${alignc}WIRELESS${color9}
Up${alignr}${upspeedf wlan0}kB/s :: ${totalup wlan0}
#${upspeedgraph wlan0 20,170 100020 2090FF}
${upspeedgraph wlan0 20,170 200010 FF9020}
Down${alignr}${downspeedf wlan0}kB/s :: ${totaldown wlan0}
#${downspeedgraph wlan0 20,170 100020 2090FF}
${downspeedgraph wlan0 20,170 200010 FF9020}
${color0}Local  IP:${alignr}${addr wlan0}
${color0}Public IP:${alignr}${execi 300 wget http://checkip.dyndns.org/ -q -O - | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'}
${endif}
1986-1990: Commodore64 / 1990-1994: Amiga 500 / 1995-1996: Amiga 1200 / 1997-2001: N/A@home /
2002-2004: Windows98, XP /
2004-2005: Knoppix, Mandrake / 2005: Mandriva, Ubuntu / 2005-2009: LFS / 2009-2010: Mint /
2010-... Arch
Avatar
Moderator
Postovi: 3293
Moderator
Postovi: 3293
Pridružen/a: 01 pro 2010, 23:50
Lokacija: Nova Gradiška
Podijelio/la zahvalu: 122 puta
Primio/la zahvalu: 156 puta
OS: Arch/KDE, Debian/Armbian
drone je napisao/la:Evo moje ružnjikave, ali informativne Conky konfiguracije. Nakupilo se tu svega tokom godina. Ima zakomentiranih redaka, ali neka ih, možda nekom pomognu. Recimo, zakomentirana je nvidia jer sad imam Ati.
CPU Temperature i FAN speed mijenjaju boju ovisno o vrijednostima. Vjerojatno sve skupa može biti i elegantnije napisano, ali taj fajl je nastajao godinama i nikad se nisam potrudio napraviti nešto ljepše :)

Font je Terminus i sve skupa neće dobro izgledati ako font nije monospace.


Kod: Označi sve
# Conky sample configuration
#
# the list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.

# set to yes if you want Conky to be forked in the background
# background yes

# X font when Xft is disabled, you can pick one with program xfontsel
#font 5x7
#font 6x10
#font 7x13
#font 8x13
#font 9x15
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -misc-fixed-medium-r-normal-*-14-*-*-*-*-*-iso8859-2
# Use Xft?
use_xft yes

# Xft font when Xft is enabled
#xftfont smoothansi
xftfont terminus-8

# Text alpha when using Xft
xftalpha 0.3

# Print everything to stdout?
# out_to_console no

# MPD host/port
# mpd_host localhost
# mpd_port 6600
# mpd_password tinker_bell

# Print everything to console?
# out_to_console no

# mail spool
# mail_spool $MAIL

# Update interval in seconds
update_interval 1.0

# 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

# If own_window is yes, you may use type normal, desktop or override
own_window_type normal

# Use pseudo transparency with own_window?
own_window_transparent no
own_window_argb_visual yes
own_window_argb_value 30

# If own_window_transparent is set to no, you can set the background colour here
#own_window_colour hotpink

# If own_window is yes, these window manager hints may be used
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
# minimum_size 250 5

maximum_width 170

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Draw borders around graphs
draw_graph_borders yes

# Stippled borders?
#stippled_borders 8

# border margins
border_inner_margin 4

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color black

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

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

# 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

# Allow for the creation of at least this number of port monitors (if 0 or not set, default is 16)
#min_port_monitors 16

# Allow each port monitor to track at least this many connections (if 0 or not set, default is 256)
#min_port_monitor_connections 256

# none, xmms, bmp, audacious, infopipe (default is none)
#xmms_player none

# variable is given either in format $variable or in ${variable}. Latter
# allows characters right after the variable and must be used in network
# stuff because of an argument


# cool palette

#color0 0050D0
#color1 100020
#color2 00D050
#color3 102000
#color4 FF4060
#color5 B0D0FF
#color9 2090FF


# warm palette

color0 D05000
color1 200010
color2 50D000
color3 002010
color4 6040FF
color5 FFD0B0
color9 FF9020


# stuff after 'TEXT' will be formatted on screen

TEXT
${color9}${alignc}HOST ${nodename}
${alignc}${sysname} ${kernel} ${machine}

${alignc}Uptime ${uptime}
${hr 2}
# CPU
${color5}${alignc}CPU
${color9}CPU1  ${cpubar cpu1 6,100} ${alignr}${cpu cpu1}%
${color0}Frequency ${alignr}${freq_g 1} GHz
#${color9}${cpugraph cpu1 20,170 100020 2090FF}
${color9}${cpugraph cpu1 20,170 200010 FF9020}
${color9}CPU2  ${cpubar cpu2 6,100} ${alignr}${cpu cpu2}%
${color0}Frequency ${alignr}${freq_g 2} GHz
#${color9}${cpugraph cpu2 20,170 100020 2090FF}
${color9}${cpugraph cpu2 20,170 200010 FF9020}
# CPU FREQUENCY COLOR
#${if_match ${freq} == 800}${color4}Frequency ${alignr}${freq} MHz$endif${if_match ${freq} == 1600}${color green}Frequency ${alignr}${freq_g} GHz$endif${if_match ${freq} == 1800}${color yellow}Frequency ${alignr}${freq_g} GHz$endif${if_match ${freq} == 2000}${color OrangeRed}Frequency ${alignr}${freq_g} GHz$endif${if_match ${freq} == 2100}${color red}Frequency ${alignr}${freq_g} GHz$endif
#${color5}Frequency ${alignr}${freq_g} GHz
# CPU TEMPERATURE
#${if_match ${acpitemp} < 45}${color4}Temperature ${alignr}${acpitemp} C${endif}${if_match ${acpitemp} >= 45}${if_match ${acpitemp} < 55}${color green}Temperature ${alignr}${acpitemp} C${endif}${endif}${if_match ${acpitemp} >= 55}${if_match ${acpitemp} < 65}${color yellow}Temperature ${alignr}${acpitemp} C${endif}${endif}${if_match ${acpitemp} >= 65}${if_match ${acpitemp} < 75}${color OrangeRed}Temperature ${alignr}${acpitemp} C${endif}${endif}${if_match ${acpitemp} >= 75}${if_match ${acpitemp} < 85}${color red}Temperature ${alignr}${acpitemp} C${endif}${endif}${if_match ${acpitemp} >= 85}${color red}${blink Temperature}${alignr}${acpitemp} C${endif}
${if_match ${hwmon 0 temp 2} < 45}${color4}Temperature ${alignr}${hwmon 0 temp 2} C${endif}${if_match ${hwmon 0 temp 2} >= 45}${if_match ${hwmon 0 temp 2} < 55}${color green}Temperature ${alignr}${hwmon 0 temp 2} C${endif}${endif}${if_match ${hwmon 0 temp 2} >= 55}${if_match ${hwmon 0 temp 2} < 65}${color yellow}Temperature ${alignr}${hwmon 0 temp 2} C${endif}${endif}${if_match ${hwmon 0 temp 2} >= 65}${if_match ${hwmon 0 temp 2} < 75}${color OrangeRed}Temperature ${alignr}${hwmon 0 temp 2} C${endif}${endif}${if_match ${hwmon 0 temp 2} >= 75}${if_match ${hwmon 0 temp 2} < 85}${color red}Temperature ${alignr}${hwmon 0 temp 2} C${endif}${endif}${if_match ${hwmon 0 temp 2} >= 85}${color red}${blink Temperature}${alignr}${hwmon 0 temp 2} C${endif}
# font with ° (terminus-8...)
${offset 158}${voffset -12}°
# font without ° (smoothansi...)
#${offset 157}${voffset -20}.${voffset 7}
# CPU FAN
${if_match ${hwmon 1 fan 2} < 500}${color4}FAN speed ${alignr}${hwmon 1 fan 2} rpm${endif}${if_match ${hwmon 1 fan 2} >= 500}${if_match ${hwmon 1 fan 2} < 1000}${color green}FAN speed ${alignr}${hwmon 1 fan 2} rpm${endif}${endif}${if_match ${hwmon 1 fan 2} >= 1000}${if_match ${hwmon 1 fan 2} < 1500}${color yellow}FAN speed ${alignr}${hwmon 1 fan 2} rpm${endif}${endif}${if_match ${hwmon 1 fan 2} >= 1500}${if_match ${hwmon 1 fan 2} < 2000}${color OrangeRed}FAN speed ${alignr}${hwmon 1 fan 2} rpm${endif}${endif}${if_match ${hwmon 1 fan 2} >= 2000}${color red}FAN speed ${alignr}${hwmon 1 fan 2} rpm${endif}
# TOP CPU
${color5}${alignc}TOP CPU${color9}
${top name 1}${alignr}${top cpu 1}%
${top name 2}${alignr}${top cpu 2}%
${top name 3}${alignr}${top cpu 3}%
${top name 4}${alignr}${top cpu 4}%
${color9}${hr 2}
#${color5}${alignc}nVidia${color9}
#GPU frequency ${alignr}${nvidia gpufreq} MHz
#MEM frequency ${alignr}${nvidia memfreq} MHz
#GPU temperature ${alignr}${nvidia temp}.0 C
#${offset 158}${voffset -12}°
##${offset 157}${voffset -20}.${voffset 7}
#AMBIENT temperature ${alignr}${nvidia ambient} C
#${offset 158}${voffset -12}°
##${offset 157}${voffset -20}.${voffset 7}
#${color9}${hr 2}
${color5}${alignc}GPU${color9}
Temperature ${alignr}${execi 5 aticonfig --od-gettemperature | grep Temperature | cut -c43-44}°C
FAN speed ${alignr}${execi 5 aticonfig --pplib-cmd "get fanspeed 0" | grep -i result | gawk {'print $4'}}
Core frequency ${alignr}${execi 5 aticonfig --od-getclocks | grep "Current Clocks" | gawk {'printf $4'}} MHz
MEM frequency ${alignr}${execi 5 aticonfig --od-getclocks | grep "Current Clocks" | gawk {'printf $5'}} MHz
${color9}${hr 2}
# HDD
${color5}HDD${alignr}${diskio}${color9}
#${diskiograph 20,170 100020 2090FF}
${diskiograph 20,170 200010 FF9020}
/     ${fs_bar 6,100 /}${alignr}${fs_used_perc}%
${alignc}${fs_size /} - ${fs_used /} - ${fs_free /}
data  ${fs_bar 6,100 /mnt/data}${alignr}${fs_used_perc /mnt/data}%
${alignc}${fs_size /mnt/data} - ${fs_used /mnt/data} - ${fs_free /mnt/data}
${hr 2}
# MEM USAGE
${color5}${alignc}MEM${color9}
RAM   ${membar 6,100}${alignr}${memperc}%
${color0}SWAP  ${swapbar 6,100}${alignr}${swapperc}%
${color5}${alignc}TOP MEM${color9}
${top_mem name 1}${alignr}${top_mem mem 1}%
${top_mem name 2}${alignr}${top_mem mem 2}%
${top_mem name 3}${alignr}${top_mem mem 3}%
${top_mem name 4}${alignr}${top_mem mem 4}%
${hr 2}
#${if_up eth0}${color5}${alignc}NETWORK${color9}
#Up${alignr}${upspeedf eth0}kB/s :: ${totalup eth0}
#${upspeedgraph eth0 20,170 100020 2090FF}
#Down${alignr}${downspeedf eth0}kB/s :: ${totaldown eth0}
#${downspeedgraph eth0 20,170 100020 2090FF}
#${color0}Local  IP:${alignr}${addr eth0}
##Public IP:${alignr}${execi 3600 wget -O - http://whatismyip.org/ | tail}
#${color0}Public IP:${alignr}${execi 3600 wget http://checkip.dyndns.org/ -q -O - | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'}
#${endif}
${if_up wlan0}${color5}${alignc}WIRELESS${color9}
Up${alignr}${upspeedf wlan0}kB/s :: ${totalup wlan0}
#${upspeedgraph wlan0 20,170 100020 2090FF}
${upspeedgraph wlan0 20,170 200010 FF9020}
Down${alignr}${downspeedf wlan0}kB/s :: ${totaldown wlan0}
#${downspeedgraph wlan0 20,170 100020 2090FF}
${downspeedgraph wlan0 20,170 200010 FF9020}
${color0}Local  IP:${alignr}${addr wlan0}
${color0}Public IP:${alignr}${execi 300 wget http://checkip.dyndns.org/ -q -O - | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'}
${endif}

Hvala ti,stavio sam tvoj conky (ovo je prvi conky koji sam uspio napraviti,i da je stvarno radio),i sviđa mi se.
Postovi: 122
Postovi: 122
Pridružen/a: 07 vel 2012, 22:04
Podijelio/la zahvalu: 7 puta
Primio/la zahvalu: 0 puta
Spol: M
OS: Manjaro Linux
I ja ga koristim, modificiranog po potrebama:

slika
To avoid criticism ~ do nothing, say nothing, be nothing.
Avatar
Site Admin
Postovi: 7632
Site Admin
Postovi: 7632
Pridružen/a: 01 pro 2007, 18:12
Lokacija: Vinkovci, Hrvatska
Podijelio/la zahvalu: 273 puta
Primio/la zahvalu: 167 puta
Spol: M
OS: openSUSE TW
:thumbs
Drago mi je ako vam je koristan. Modificirati morate one dijelove sa senzorima za CPU i GPU osim ako nemate isti hardver kao ja. Ima u konfiguraciji i za nVidiu, samo treba odkomentirati, a ATI zakomentirati. Za nVidiu morate imati odgovarajuće kompajlirani conky inače neće raditi. Za Arch je u AUR-u pod nazivom conky-nvidia i conky-lua-nv. Ovaj drugi dodaje podršku za lua skripte (one krugove i sl.). Za ATI treba catalyst driver i obični conky (iako rade i ovi patchirani, ne smeta). Ne znam kako je u drugim distrama.

Najviše volim takve tekstualne s pokojim barom. Najbolje se snalazim kad mi nešto točno piše :)
1986-1990: Commodore64 / 1990-1994: Amiga 500 / 1995-1996: Amiga 1200 / 1997-2001: N/A@home /
2002-2004: Windows98, XP /
2004-2005: Knoppix, Mandrake / 2005: Mandriva, Ubuntu / 2005-2009: LFS / 2009-2010: Mint /
2010-... Arch
Avatar
Moderator
Postovi: 3293
Moderator
Postovi: 3293
Pridružen/a: 01 pro 2010, 23:50
Lokacija: Nova Gradiška
Podijelio/la zahvalu: 122 puta
Primio/la zahvalu: 156 puta
OS: Arch/KDE, Debian/Armbian
Ovako,zanima me kako da dodam conky u startup? Svaki put kad palim laptop moram ga iznova u terminalu pokretati..

Sent from my ST25i using Tapatalk 4 Beta
Postovi: 122
Postovi: 122
Pridružen/a: 07 vel 2012, 22:04
Podijelio/la zahvalu: 7 puta
Primio/la zahvalu: 0 puta
Spol: M
OS: Manjaro Linux
Napravi si skriptu tipa
Kod: Označi sve
sleep 20
conky


Pa si tu skriptu stavi da se pokrece kod startupa. Vidi sad za taj iznos kod sleep (to su sekunde) jel treba i duze
Avatar
Site Admin
Postovi: 16087
Site Admin
Postovi: 16087
Pridružen/a: 03 tra 2008, 18:09
Lokacija: Svugdi me ima. Slavonija uglavnom.
Podijelio/la zahvalu: 503 puta
Primio/la zahvalu: 531 puta
Spol: M
OS: Mint 17 Cinnamon
http://www.youtube.com/watch?v=huc5PHOET9I
jos pomoci ako se ne snadjes
Postovi: 228
Postovi: 228
Pridružen/a: 07 ruj 2012, 16:12
Lokacija: BIH
Podijelio/la zahvalu: 16 puta
Primio/la zahvalu: 12 puta
Spol: M
OS: Debian - Win7

Na mreži
Trenutno korisnika/ca: / i 1 gost.