Conky.rc'm

Cumartesi, 13 Mar 2010 Utku Demir yorum ekle yorumlara git

Conky DesktopEğer Linux masaüstünüzde biraz daha hoş bir görüntü istiyorsanız ve hakkında araştırma yaptıysanız, conky'i kesinlikle biliyorsunuzdur.

Ben iki conky çalıştırıyorum masaüstümde yan yana; aynı zamanda conky'e yardımcı olması için paconky scripti ve hava durumu bilgilerini alan basit de bir script var. Bu dosyalar ve scriptlerin içeriği aşağıdadır.

Sırayla:

  1. .conkyrc
  2. .conkyrc1
  3. paconky.repo
  4. paconky.aur
  5. /usr/bin/weather

Bu benim conky.rc dosyamın ilki:

# conky 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.
#
# For ideas about how to modify conky, please see:
# http://crunchbanglinux.org/forums/topic/59/my-conky-config/
#
# For help with conky, please see:
# http://crunchbanglinux.org/forums/topic/2047/conky-help/
#
# Enjoy! :)
##############################################
#  Settings
##############################################
background yes
use_xft yes
xftfont Sans:size=8
xftalpha 1
update_interval 2.0
total_run_times 0
#own_window no
own_window yes
own_window_transparent yes
own_window_type normal
background yes
own_window_hints undecorated,sticky,skip_taskbar,skip_pager,below
double_buffer yes
minimum_size 200 200
maximum_width 500
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_shade_color black
default_outline_color white
alignment top_right
gap_x 12
gap_y 12
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
text_buffer_size 4096
##############################################
#  Output
##############################################
TEXT
SYSTEM INFO:
${hr}
Host:$alignr$nodename
Uptime:$alignr$uptime

Fan Speed: $alignr ${color orange}${exec sensors | grep fan1 | awk '{print $2}'}${color } RPM

RAM: ${alignr}$mem / $memmax - $memperc% ${color orange}${membar 8,60}${color }
SWAP: ${alignr}$swap / $swapmax - $swapperc% ${color orange}${swapbar 8,60}${color }

/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_free_perc /}%
${color orange}${fs_bar /}${color }${if_mounted /media/DEPO1}

DEPO1 $alignc ${fs_used /media/DEPO1} / ${fs_size /media/DEPO1} $alignr ${fs_free_perc /media/DEPO1}%
${color orange}${fs_bar /media/DEPO1}${color }$endif

CPU INFO:
${hr}
Core 0 Temp: ${alignr}${color orange}${exec sensors | grep "Core 0" | awk '{print $3}'| head -c 3 | tail -c 2} C${color}
Core 1 Temp: ${alignr}${color orange}${exec sensors | grep "Core 1" | awk '{print $3}'| head -c 3 | tail -c 2} C${color}

${color orange}Load Average${color }
             last 1 minute: ${alignr}${color red}${loadavg 1}${color }
             last 5 minute: ${alignr}${color red}${loadavg 2}${color }
             last 15 minute: ${alignr}${color red}${loadavg 3}${color }

${color slate grey}CPU:        ${color }${color dc143c} $cpu% $color
${cpugraph 20,250 000000 dc143c}

PROCESS INFO (Top 5):
${hr}
${color orange}NAME ${color }(by CPU)${color orange} $alignr PID     CPU    MEM${color }
${color red}${top name 1} $alignr ${top pid 1}  ${top cpu 1}   ${top mem 1}${color }
${top name 2} $alignr ${top pid 2}  ${top cpu 2}    ${top mem 2}
${top name 3} $alignr ${top pid 3}  ${top cpu 3}    ${top mem 3}
${top name 4} $alignr ${top pid 4}  ${top cpu 4}    ${top mem 4}
${top name 5} $alignr ${top pid 5}  ${top cpu 5}    ${top mem 5}

${color orange}NAME ${color }(by Memory)${color orange} $alignr PID     CPU    MEM${color }
${color red}${top_mem name 1} $alignr ${top_mem pid 1}  ${top_mem cpu 1}   ${top_mem mem 1}${color }
${top_mem name 2} $alignr ${top_mem pid 2}  ${top_mem cpu 2}    ${top_mem mem 2}
${top_mem name 3} $alignr ${top_mem pid 3}  ${top_mem cpu 3}    ${top_mem mem 3}
${top_mem name 4} $alignr ${top_mem pid 4}  ${top_mem cpu 4}    ${top_mem mem 4}
${top_mem name 5} $alignr ${top_mem pid 5}  ${top_mem cpu 5}    ${top_mem mem 5}

SPEED INFO:
${hr}
Down: ${alignr}${downspeed eth0}/s
${downspeedgraph eth0 20,250 F57900 FCAF3E}
Up: ${alignr}${upspeed eth0}/s
${upspeedgraph eth0 20,250 F57900 FCAF3E}

Bu da ikincisi:

# conky 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.
#
# For ideas about how to modify conky, please see:
# http://crunchbanglinux.org/forums/topic/59/my-conky-config/
#
# For help with conky, please see:
# http://crunchbanglinux.org/forums/topic/2047/conky-help/
#
# Enjoy! :)
##############################################
#  Settings
##############################################
background yes
use_xft yes
xftfont Sans:size=8
xftalpha 1
update_interval 60
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type normal
own_window_hints undecorated,sticky,skip_taskbar,skip_pager,below
double_buffer yes
minimum_size 200 200
maximum_width 500
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color white
default_shade_color black
default_outline_color white
alignment top_right
gap_x 290
gap_y 12
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale no
text_buffer_size 4096
##############################################
#  Output
##############################################
TEXT
SYSTEM UPDATES:
${hr}
${execpi 600 paconky .paconky.repo}
${execpi 3600 paconky .paconky.aur}

SITE STATUS:
${hr}
birseyler.org $alignr ${color red} ${exec curl birseyler.org/test.html}$color
www.birseyler.org $alignr ${color red} ${exec curl www.birseyler.org/test.html}$color

GMAIL:
${hr}
You have ${color red}${exec curl https://"utdemir":"*******"@mail.google.com/mail/feed/atom | grep "" | wc -l}${color } new mail.
${color orange}${exec curl https://"utdemir":"******"@mail.google.com/mail/feed/atom | grep name | cut -c 7- | rev | cut -c 8- | rev} ${color }

WEATHER:
${hr}
${execpi 1800 weather}</pre>${color orange}Repository Status ${alignr}${color red}%MSG%${color }

paconky.repo:

[bash]#SET MSG_0 Up to Date
#SET MSG_1 1 New Package
#SET MSG_N %N% New Packeges
#
%PKG_NAME% ${alignr}%PKG_VER%

paconky.aur:

#SET AUR_MSG_0 Up to Date
#SET AUR_MSG_1 1 New Package
#SET AUR_MSG_N %AUR_N% New Packages
#
${color orange}AUR Status ${alignr}${color red}%AUR_MSG%${color }
%AUR_PKG_NAME% ${alignr}%AUR_PKG_VER%

/usr/bin/weather:

#!/bin/sh
#AccuWeather (r) RSS weather tool for conky
#
#USAGE: weather.sh
#
#(c) Michael Seiler 2007

METRIC=1 #Should be 0 or 1; 0 for F, 1 for C

curl --connect-timeout 15 -s http://rss.accuweather.com/rss/liveweather_rss.asp\?metric\=${METRIC}\&amp;locCode\=MEA\|TR\|TU037\|MERSIN | perl -ne 'if (/Currently/) {chomp;/\Currently: (.*)?\&lt;\/title\&gt;/; print "$1"; }'
Share and Enjoy!
  • RSS
  • Print
  • Facebook
  • Google Bookmarks
  • Twitter
  • del.icio.us
  • StumbleUpon
  • Digg
  • Technorati

İlgili Yazılar:

  1. KDE üzerinde Conky kullanmak
  2. Sistemim
  3. Phun - Fizik Simülatörü
  4. Denemeniz gereken işletim sistemleri
Yorumlar
Bear