Sada je: 15 stu 2019, 01:04.
Razmjena savjeta i trikova o podešavanju sustava i programa.

Moderator/ica: Moderatori/ce

Ovdje možete postavljati svoje Conky konfiguracije, kako bi ih mogli podijeliti s ostatkom korisnika. Postoji dva pravila:

1. Obavezno je priložiti screenshot Conkya na desktopu (najbolje putem nekog servisa tipa Pohrani)
2. Sadržaj konfiguracijske datoteke obavezno je postaviti u [code] BB tag
3. Tema je isključivo za konfiguracije, nije za riješavanje problema i upita


Započinjem (ujedno i primjer):

Screenshot:
slika

Sadržaj konfiguracijske datoteke: PREUZMI (imao sam problema oko prikazivanja unutar CODE taga, tako da sam morao ovako - vi koristite CODE tag).

Ovdje se nalazi web stranica s detaljima (podešavanje vremenske prognoze i sl.)
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
slika

Kod: Označi sve

double_buffer yes


update_interval 3.0


maximum_width 320



draw_shades no


draw_outline no
draw_borders no
font arial
uppercase no


stippled_borders 3


border_margin 5


border_width 6


default_color FFFFCC

own_window_colour brown
own_window_transparent yes


alignment top_right


gap_x 10
gap_y 10



TEXT
$color
${color CC9900}SYSTEM ${hr 2}$color
$nodename $sysname $kernel on $machine

${color CC9900}CPU ${hr 2}$color
AMD Athlon(tm) 64 Socket 939 X2 Dual Core CPU 4200+

Total CPU: ${cpu cpu0}%
${color 597DB2}${cpubar}$color
${cpugraph 000000 597DB2}
Core 1: ${freq 1} MHz        Temprature: $color ${exec sensors|grep 'Core0'|awk '{print $3}'}
${cpu cpu1}% ${color 597DB2}${cpubar cpu1}$color
Core 2: ${freq 2} MHz        Temprature: $color ${exec sensors|grep 'Core1'|awk '{print $3}'}
${cpu cpu2}% ${color 597DB2}${cpubar cpu2}$color

NAME            PID    CPU%     MEM%
${color CCFFFF}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}$color

${color CC9900}MEMORY ${hr 2}$color
RAM Used: ${mem}   RAM Free: ${memfree}/ ${memmax}
 RAM: $memperc%  ${color FF6600} ${membar 6}$color
Swap: $swapperc%   ${color FF6600} ${swapbar 6}$color

${color CC9900}DISK ${hr 2}$color
sdc5 ${fs_type} (Root): ${fs_free_perc /}% ${color FFFF33} ${fs_bar 6 /}$color
sdc1 NTFS (Data): ${fs_free_perc /media/data}% ${color FFFF33} ${fs_bar 6 /media/data}$color

${color CC9900}NETWORK (${addr eth1}) ${hr 2}$color
Down: $color${downspeed eth1} k/s ${alignr}Up: ${upspeed eth1} k/s
${downspeedgraph eth1 25,140 000000 ff0000} ${alignr}${upspeedgraph eth1
25,140 000000 00ff00}$color
Total: ${totaldown eth1} ${alignr}Total: ${totalup eth1}
Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768
61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}

${color CC9900}LOGGING ${hr 2}$color
${color 339900}${execi 30 tail -n3 /var/log/messages | fold -w50}$color

stefan je napisao/la:tu mač gemišta

To understand recursion, you must first understand recursion.
Avatar
Postovi: 1536
Postovi: 1536
Pridružen/a: 22 tra 2012, 08:55
Lokacija: ForHill Croatia
Podijelio/la zahvalu: 20 puta
Primio/la zahvalu: 26 puta
Spol: M
OS: eOS Luna
slika

U originalni Conky dodan je dio gdje prikazuje na kojem ste desktopu koristeći Android način.

Priložen je i font:
FONT-BankGthd.tar.gz
(22.44 KiB) Preuzeto 173 put/a.


Kod: Označi sve
alignment top_middle
background no
border_margin 5
border_width 5
default_color d7d7d7  #413536 # grey 5f5f5f 3F3F3F 183149 3B3B3B 26211F
double_buffer yes
draw_borders no
draw_outline no
draw_shades no
gap_x 0
gap_y 150
maximum_width 1000
minimum_size 175
no_buffers yes
override_utf8_locale yes
own_window yes
own_window_title conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
own_window_type normal    ## normal /override /desktop
text_buffer_size 8000
total_run_times 0
update_interval 1
uppercase no
use_xft yes
xftalpha 1
xftfont Freesans:pixelsize=9

#            fonts
#   Blue Highway
#   Zegoe Light - U
#   Zekton
#   Calibri
#   Engebrechtre
#   Opeln2001
#   Pricedown

TEXT
${font BankGothic Md BT:pixelsize=15}${alignc}${time [ %A, %H:%M:%S ]}${font}

${font BankGothic Md BT:pixelsize=65}${alignc}${time %d %B, %Y}${font}


${font BankGothic Md BT:pixelsize=12}${alignc}[ CPU1: ${cpu cpu0}% CPU2: ${cpu cpu1}% DATA: ${fs_free /home} SYSTEM: ${fs_free /} ]
${font BankGothic Md BT:pixelsize=12}${alignc}[ RAM: ${mem} | WLAN Up: ${upspeed wlan1} WLAN Dwn: ${downspeed wlan1} ]

${alignc}WORKSPACE
${if_match ${desktop}==1}${color1}${endif}${alignc}•${color}${offset 10}${if_match ${desktop}==2}${color1}${endif}${alignc}•${color}${offset 10}${if_match ${desktop}==3}${color1}${endif}${alignc}•${color}${offset 10}${if_match
#${if_match ${desktop}==1}${color1}${endif}${execbar echo 100}${color}${offset 10}${if_match ${desktop}==2}${color1}${endif}${execbar echo 100}${color}${offset 10}${if_match ${desktop}==3}${color1}${endif}${execbar echo 100}${color}${offset 10}${if_match ${desktop}==4}${color1}${endif}${execbar echo 100}${color}
#${if_match ${desktop}==1}${color1}${endif}1${color}${offset 10}${if_match ${desktop}==2}${color1}${endif}2${color}${offset 10}${if_match ${desktop}==3}${color1}${endif}3${color}${offset 10}${if_match ${desktop}==4}${color1}${endif}4${color}
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
slika

Kod: Označi sve
background no
use_xft yes
xftfont 123:size=8
xftalpha 0.5
update_interval 1
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_colour 5f90a9
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 200 5
maximum_width 200
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color gray
default_shade_color red
default_outline_color green
alignment top_right
gap_x 10
gap_y 30
no_buffers no
uppercase no
cpu_avg_samples 2
net_avg_samples 1
override_utf8_locale yes
use_spacer right
text_buffer_size 256

TEXT
${color ffffff}${font Arial:size=35}${time %R} ${color dddddd}${font :size:15}${time %S}

${font :size=9}$alignr${time %d.%m.%Y.}
$font${uptime}${goto 129}${font :size=9}${time %A}

${execi 300 curl -s "http://weather.yahooapis.com/forecastrss?w=12714300&u=c" -o ~/.cache/weather.xml}
${font Arial:size=30}${goto 120}${execi 300 grep "yweather:condition" ~/.cache/weather.xml | grep -o "temp=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*"}°
${font Arial}${goto 20}danas${goto 135}sutra
${hr 3}
${goto 75}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | head -n1}°${goto 180}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "high=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tail -n1}°
${goto 75}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | head -n1}°${goto 180}${execi 300 grep "yweather:forecast" ~/.cache/weather.xml | grep -o "low=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tail -n1}°
${execi 300 cp -f ~/.conky/weathericons/$(grep "yweather:condition" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*").png ~/.cache/weather.png}${image ~/.cache/weather.png -p 10,125 -s 45x45}${execi 300 cp -f ~/.conky/weathericons/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | head -n1).png ~/.cache/weather-today.png}${image ~/.cache/weather-today.png -p 10,230 -s 30x30}${execi 300 cp -f ~/.conky/weathericons/$(grep "yweather:forecast" ~/.cache/weather.xml | grep -o "code=\"[^\"]*\"" | grep -o "\"[^\"]*\"" | grep -o "[^\"]*" | tail -n1).png ~/.cache/weather-tomorrow.png}${image ~/.cache/weather-tomorrow.png -p 120,230 -s 30x30}
$font${color dddddd}${freq_g cpu0} Ghz${alignr}${exec sensors | grep -A 0 'Physical' | cut -c 18-19}°C
CPU1  ${cpu cpu1} %${goto 80}${cpubar 6 cpu1}
CPU2  ${cpu cpu2} %${goto 80}${cpubar 6 cpu2}

RAM ${membar 6,65}${goto 100}SWAP ${swapbar 6}

/home ${goto 65}${fs_used_perc /home} %${goto 135}/${alignr}${fs_used_perc /} %

${top_mem name 1}${alignr}${top mem 1} %
${top_mem name 2}${alignr}${top mem 2} %
${top_mem name 3}${alignr}${top mem 3} %
${top_mem name 4}${alignr}${top mem 4} %
${top_mem name 5}${alignr}${top mem 5} %
${top_mem name 6}${alignr}${top mem 6} %


${font Arial:bold}MoC ${hr 2}${if_running mocp}${if_match ${execi 5 /home/hrvoje/.conky/mocstat.sh|head -c 1}!=0}${font :size=10}
${execi 10 mocp -Q %artist}
${execi 10 mocp -Q %album}
${execi 10 mocp -Q %song}
$alignr${execi 1 mocp -i | grep 'CurrentTime:' | sed -e 's/^.*: //'} / ${execi 1 mocp -i | grep 'TotalTime:' | sed -e 's/^.*: //'}
${if_match ${execi 5 /home/hrvoje/.conky/mocstat.sh|head -c 1}==2} (paused)$endif
$else
${font :size=10}
ne svira...



$endif$else
${font :size=10}
ne svira...



$endif
${font Monospace:size=11}${exec cal -h}
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
Dečki evo jedne moje kreacije :hihi

Laptop spojen na struju:

slika

Laptop na bateriji:

slika

Laptop na bateriji, punjenje:

slika

.conkyrc

Kod: Označi sve
own_window yes
own_window_type override
own_window_hints below
double_buffer yes
use_spacer yes
use_xft no
update_interval 1.0
maximum_width 260
draw_shades no
draw_outline no
draw_borders no
font arial
uppercase no
own_window_transparent yes
alignment top_right
gap_x 10
gap_y 22

#            
# CONKY CONFIG STARTS HERE
#            

TEXT

${color CC9900}SYSTEM ${hr 2}$color
${color 0099FF}
User   : $nodename
Distro :${pre_exec lsb_release -d| cut -d: -f2}
Kernel : $kernel

Uptime : ${uptime}$color


${color CC9900}BATTERY ${hr 2}$color

${color 0099FF}Status: ${battery}
${battery_percent}% ${battery_bar}

Battery time left: ${battery_time}$color


${color CC9900}NETWORK ${hr 2}$color

${color 0099FF}ESSID: ${wireless_essid wlan0}
${wireless_link_qual wlan0}% ${wireless_link_bar wlan0}

Speeds  : ${downspeedf wlan0} / ${upspeedf wlan0}     [ KiB ]
Traffic : ${totaldown wlan0} / ${totalup wlan0} [ Down / Up ]$color


${color CC9900}CPUS ${hr 2}$color
${color 0099FF}
${cpu cpu1}% ${cpubar cpu1}
${cpu cpu2}% ${cpubar cpu2}
${cpu cpu3}% ${cpubar cpu3}
${cpu cpu4}% ${cpubar cpu4}$color


${color CC9900}MEMORY & SWAP ${hr 2}$color

${color 0099FF}Memory : ${mem} / ${memmax}
Swap   : ${swap} / ${swapmax}

$memperc%  ${membar}
$swapperc%  ${swapbar}$color


${color CC9900}DISKS ${hr 2}$color

${color 0099FF}/     : ${fs_used /} / ${fs_size /} ( ${fs_type /} )
/home : ${fs_used /home/os7een} / ${fs_size /home/os7een} ( ${fs_type /home/os7een} )

${fs_used_perc /}%  ${fs_bar /}
${fs_used_perc /home}% ${fs_bar /home}$color


${color CC9900}DATE & TIME ${hr 2}$color

${color 0099FF}$alignc ${time %Hh : %Mm : %Ss} , ${time %d %b %Y}
$alignc ${time %A}$color
Postovi: 220
Postovi: 220
Pridružen/a: 29 tra 2013, 15:21
Lokacija: /dev/urandom
Podijelio/la zahvalu: 6 puta
Primio/la zahvalu: 19 puta
Spol: M
OS: Arch Linux - Debian Sid
One barove poravnaj malo. Iza %, a odmah ispred ${fs_bar ...} dodaj ${alignr} za desno poravnavanje.

Npr. umjesto
Kod: Označi sve
${fs_used_perc /}%  ${fs_bar /}

probaj
Kod: Označi sve
${fs_used_perc /}%${alignr}${fs_bar /}

Napamet ovo pišem pa možda treba još koja caka (broj razmaka), ali poigraj se s tim align varijablama (alignc i alignr) dok ne dobiješ poravnate barove.

http://conky.sourceforge.net/variables.html
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
Ti barovi se rastežu i sužuju prema brojkama, tj. prema postocima. Znači neće biti isto rastegnut bar ako je postotak jednoznamenkast ili dvoznamenkast, to je ostavljeno namjerno tako da se dobije neki osjećaj dinamike u izgledu.
Postovi: 220
Postovi: 220
Pridružen/a: 29 tra 2013, 15:21
Lokacija: /dev/urandom
Podijelio/la zahvalu: 6 puta
Primio/la zahvalu: 19 puta
Spol: M
OS: Arch Linux - Debian Sid
Sebi sam stavio fiksno i poravnato. Svi su isti bez obzira na broj znakova ispred ili iza bara. Znači, to se može srediti. Ali ako kažeš da je namjerno onda zanemari da sam išta napisao :)
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
Čini mi se dobra ideja napisati upute za slaganje Conkya. Znam da ima toga dosta, i naravno, ne mora se sve pokriti, ali navesti osnovne stvari tipa poravnavanje i sl.. Na kraju navesti najpopularnije (ili manje popularne, ali kul) varijable te za što svaka služi. Naravno, to bi objavili na sajtu u obliku uputa.

Što kažete na ideju? Ima dobrovoljaca? Drone?

Ja nešto drugo imam u planu, a to je napisati novi tekst "Pet predivnih Conky konfiguracija za vaš desktop". Ako se sjećate, jedan sam već napisao, a za ovaj imam sve spremno, samo treba sjest i odradit.
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
Nikakav $alignr tu neće pomoći, već ${goto 30} (mijenjaj broj dok ne dobiješ željeno).
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

Na mreži
Trenutno korisnika/ca: / i 2 gostiju.