Linux

Aplicatia Conky pe Ubuntu

Pe langa faptul ca este un sistem de operare foarte usor de instalat si de utilizat, GNU/Linux Ubuntu (9.04) vine cu numeroase aplicatii care pot fi configurate si adaptate dupa gustul si priceperea fiecaruia. Una dintre aplicatiile gasite si folosite cu succes este Conky.

Pentru a instala Conky se pot folosi doua metode. Personal am folosit-o prima:

sudo apt get-install conky

cautare conky in Synaptic Package Manager

Indiferent de modelul gasit si instalat trebuie retinut ca aplicatia Conky se poate modifica foarte usor si configura dupa propria dorinta, folosind urmatoarele comenzi:

gedit .conkyrc

apare o noua fereastra text unde se editeaza manual variabilele, dupa care se salveaza si se reporneste aplicatia

Pentru a lansa Conky din desktop sau panel se creaza un launcher cu comanda /usr/bin/conky

Si acum iata produsul final (imagine + variabilele din gedit .conkyrc):

conkybackground no
font Snap.se:size=8
xftfont Snap.se:size=8
use_xft yes
xftalpha 0.1
update_interval 1.0
total_run_times 0
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
minimum_size 210 5
maximum_width 210
default_color ffffff
default_shade_color 000000
default_outline_color 000000
alignment top_right
gap_x 6
gap_y 22
no_buffers yes
cpu_avg_samples 2
override_utf8_locale no
uppercase no # set to yes if you want all text to be in uppercase
use_spacer no

TEXT
${font LCDDisplayCapsSSi:style=Bold:pixelsize=54}${alignc}${time %H:%M}${font Snap.se:size=8}
${alignr}${time %A, %e %B %G}

${font Aerial:style=Bold:pixelsize=12}CALENDAR${font Snap.se:size=8}${hr 1}
${font DejaVu Sans Mono :size=12}${exec cal}
${font Aerial:style=Bold:pixelsize=12}SYSTEM${font Snap.se:size=8} ${hr 1 }
User: $alignr$user_names
Computer: $alignr$nodename
$alignc$sysname $kernel ($machine)
Uptime: $alignr$uptime
Process: ${alignr}$processes ($running_processes running)
Load: ${alignr}$loadavg

Battery ${alignr}(${battery BAT1})
${battery_bar 4 BAT1}

CPU ${alignc} ${freq}MHz / ${acpitemp}C ${alignr}(${cpu cpu1}%)
${cpubar 4 cpu1}
${cpugraph 0000ff 00ec00}

RAM ${alignr}$mem / $memmax ($memperc%)
${membar 4}

${font Aerial:style=Bold:pixelsize=12}FILE SYSTEM${font Snap.se:size=8}${hr 1}
HDD: ${alignr}${fs_used /} / ${fs_size /}
${fs_bar 4 /}

${font Aerial:style=Bold:pixelsize=12}CONNECTION${font Snap.se:size=8}${hr 1}
Down ${downspeed eth0} k/s ${alignr}Up ${upspeed eth0} k/s
${downspeedgraph eth0 25,107 cccccc ffffff} ${alignr}${upspeedgraph eth0 25,107 cccccc ffffff}
Total ${totaldown eth0} ${alignr}Total ${totalup eth0}

${alignr 240}${color slate grey}Highest CPU:
${alignr 240}${color #ddaa00} ${top name 1}${top_mem cpu 1}
${alignr 240}${color lightgrey} ${top name 2}${top cpu 2}
${alignr 240}${color lightgrey} ${top name 3}${top cpu 3}
${alignr 240}${color lightgrey} ${top name 4}${top cpu 4}

${alignr 240}${color slate grey}Highest MEM:
${alignr 240}${color #ddaa00} ${top_mem name 1}${top_mem mem 1}
${alignr 240}${color lightgrey} ${top_mem name 2}${top_mem mem 2}
${alignr 240}${color lightgrey} ${top_mem name 3}${top_mem mem 3}
${alignr 240}${color lightgrey} ${top_mem name 4}${top_mem mem 4}

Screenshot
Conky pe Desktop de Ubuntu 9.04

3 comments

  1. Interesant .conkyrc-ul tau deasemenea frumos si wallpaperu
    vin cu o observatie, daca folosesti compiz si daca vrei sa ai conky pe toate fetele desktop-ului la variabile pui
    own_window no
    bafta

  2. Salut, deschide synaptic si cauta compizconfig-settings-manager instaleaza-l dupa care in sistem > preferinte > compizconfig settings manager.
    intri la optiuni generale > Desktop size aici selectezi cate fete vrei (prima casuta )
    dimensiune virtuala orizontala, inapoi la vedere generala selectezi Cub birou si ce mai vrei tu
    bafta

Spune-ti parerea, opinia ta conteaza