@na
Ae napisi sta si sve nabudzio na svom GNOME-u, stvarno extra izgleda!

Mislim za ove zadnje screenshotove od 5.04.2009! A i ovo raniji su dobri!
Uf,ima mnogo toga,al ajmo redom.Prvo,gtk tema je Moomex-Ultimatum(u nautilus-u ides na edit-backgrounds and emblems i tu izaberes boju koja odgovara gtk temi i ubacis je metodom drag-and-drop u file browser),temu sam skinuo sa gnome-look.org-a,tema za ikone je Windows Vista,tema za kursor je Shere_Khan_X,nemam pojma odakle sam to skinuo.Od programa koristim compiz i emerald,emerald tema je BlackLine.U ccsm-u ides na Opacity,Brightness and Saturation i u tab-u Opacity nadjes window specific settings,tu ides na new i ubacis prvo
(type=Menu | PopupMenu | DropdownMenu)
i das mu vrednost 70,posle ubacis
(name=gnome-panel)
i das mu vrednost 80.
Onda imam 4 conky-ja na Desktop-u,ova dva dole u uglovima ce ti raditi bez dodatnih stvari,a za ova dva gore moras da imas jos neke skripte,programe instalirane itd.
.conkyrc
background no
font Liberation Mono:size=8
use_xft yes
xftfont Liberation Mono:size=8
xftalpha 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 100 5
maximum_width 1300
default_color F6F63B
alignment top_left
gap_x 70
gap_y 35
color1 white
no_buffers yes
cpu_avg_samples 2
override_utf8_locale no
uppercase no
use_spacer no
TEXT
${font OpenLogos:size=11}A$font${voffset -4} cpu0 $color1${cpu cpu0}%$color :: cpu1 $color1${cpu cpu1}%$color :: temp $color1${acpitemp}C$color :: ram $color1${memperc}%$color :: swap $color1$swapperc%$color :: root $color1${fs_used /}/${fs_size /}$color :: home $color1${fs_used /home}/${fs_size /home}$color :: down $color1${downspeed eth0}k/s ${totaldown eth0}$color :: up $color1${upspeed eth0}k/s ${totalup eth0}$color :: gmail $color1${texeci 6000 perl ~/gmail.pl n} new$color :: updates $color1${execi 1800 ~/newpm.sh}${voffset -1}${font PizzaDude Bullets:size=9}U$font ${exec head -n1 ~/.pacmanupdates.txt} ${voffset -1}${font PizzaDude Bullets:size=9}O$font ${exec tail -n1 ~/.pacmanupdates.txt}
Za .conkyrc ce ti trebati jos da skines sa net-a fontove OpenLogos i PizzaDude Bullets i jos 3 skripte,gmail.pl,up.sh i newpm.sh.U skriptu gmail.pl treba da ubacis svoj username i password.A da bi radila up.sh skripta treba da u /etc/pacman.conf otkomentiras red ShowSize.
gmail.pl
#!/usr/bin/perl
use Switch;
use Text::Wrap;
my $what=$ARGV[0];
$user="username"; #username for gmail account
$pass="password"; #password for gmail account
$file="/tmp/gmail.html"; #temporary file to store gmail
#wrap format for subject
$Text::Wrap::columns=75; #Number of columns to wrap subject at
$initial_tab=""; #Tab for first line of subject
$subsequent_tab="\t"; #tab for wrapped lines
$quote="\""; #put quotes around subject
#limit the number of emails to be displayed
$emails=4; #if -1 display all emails
&passwd; #give password the proper url character encoding
switch($what){ #determine what the user wants
case "n" {&gmail; print "$new\n";} #print number of new emails
case "s" { #print $from and $subj for new email
&gmail;
if ($new>0){
my $size=@from;
if ($emails!=-1 && $size>$emails){$size=$emails;} #limit number of emails displayed
for(my $i=0; $i<$size; ++$i){
print "From: $from[$i]\n"; #print from line
$text=$quote.$subj[$i].$quote."\n";
print wrap($initial_tab, $subsequent_tab, $text); #print subject with word wrap
}
$size=@from;
if ($emails!=-1 && $size >$emails){print "$emails out of $size new emails displayed\n";}
}
}
case "e" { #print number of new emails, $from, and $subj
&gmail;
if($new==0){print "You have no new emails.\n";}
else{
print "You have $new new email(s).\n";
my $size=@from;
if ($emails!=-1 && $size>$emails){$size=$emails;} #limit number of emails displayed
for(my $i=0; $i<$size; ++$i){
print "From: $from[$i]\n"; #print from line
$text=$quote.$subj[$i].$quote;
print wrap($initial_tab, $subsequent_tab, $text); #print subject with word wrap
}
$size=@from;
if ($emails!=-1 && $size >$emails){print "$emails out of $size new emails displayed\n";}
}
}
else {
print "Usage Error: gmail.pl <option>\n";
print "\tn displays number of new emails\n";
print "\ts displays from line and subject line for each new email.\n";
print "\te displays the number of new emails and from line plus \n";
print "\t\tsubject line for each new email.\n";
} #didn't give proper option
}
sub gmail{
if(!(-e $file)){ #create file if it does not exists
`touch $file`;
}
#get new emails
`wget -O - https://$user:$pass\@mail.google.com/mail/feed/atom --no-check-certificate> $file`;
open(IN, $file); #open $file
my $i=0; #initialize count
$new=0; #initialize new emails to 0
my $flag=0;
while(<IN>){ #cycle through $file
if(/<entry>/){$flag=1;}
elsif(/<fullcount>(\d+)<\/fullcount>/){$new=$1;} #grab number of new emails
elsif($flag==1){
if(/<title>.+<\/title>/){push(@subj, &msg);} #grab new email titles
elsif(/<name>(.+)<\/name>/){push(@from, $1); $flag=0;} #grab new email from lines
}
}
close(IN); #close $file
}
sub passwd{ #change to url escape codes in password
#URL ESCAPE CODES
$_=$pass;
s/\%/\%25/g;
s/\#/\%23/g;
s/\$/\%24/g;
s/\&/\%26/g;
s/\//\%2F/g;
s/\:/\%3A/g;
s/\;/\%3B/g;
s/\</\%3C/g;
s/\=/\%3D/g;
s/\>/\%3E/g;
s/\?/\%3F/g;
s/\@/\%40/g;
s/\[/\%5B/g;
s/\\/\%5C/g;
s/\]/\%5D/g;
s/\^/\%5E/g;
s/\`/\%60/g;
s/\{/\%7B/g;
s/\|/\%7C/g;
s/\}/\%7D/g;
s/\~/\%7E/g;
$pass=$_;
}
sub msg{
#THE HTML CODED CHARACTER SET [ISO-8859-1]
chomp; s/<title>(.+)<\/title>/$1/; #get just the subject
#now replace any special characters
s/\&\#33\;/!/g; #Exclamation mark
s/\&\#34\;/"/g; s/\"\;/"/g; #Quotation mark
s/\&\#35\;/#/g; #Number sign
s/\&\#36\;/\$/g; #Dollar sign
s/\&\#37\;/%/g; #Percent sign
s/\&\#38\;/&/g; s/\&\;/&/g; #Ampersand
s/\&\#39\;/'/g; #Apostrophe
s/\&\#40\;/(/g; #Left parenthesis
s/\&\#41\;/)/g; #Right parenthesis
s/\&\#42\;/*/g; #Asterisk
s/\&\#43\;/+/g; #Plus sign
s/\&\#44\;/,/g; #Comma
s/\&\#45\;/-/g; #Hyphen
s/\&\#46\;/./g; #Period (fullstop)
s/\&\#47\;/\//g; #Solidus (slash)
s/\&\#58\;/:/g; #Colon
s/\&\#59\;/\;/g; #Semi-colon
s/\&\#60\;/</g; s/\<\;/</g; #Less than
s/\&\#61\;/=/g; #Equals sign
s/\&\#62\;/>/g; s/\>\;/>/g; #Greater than
s/\&\#63\;/\?/g; #Question mark
s/\&\#64\;/\@/g; #Commercial at
s/\&\#91\;/\[/g; #Left square bracket
s/\&\#92\;/\\/g; #Reverse solidus (backslash)
s/\&\#93\;/\]/g; #Right square bracket
s/\&\#94\;/\^/g; #Caret
s/\&\#95\;/_/g; #Horizontal bar (underscore)
s/\&\#96\;/\`/g; #Acute accent
s/\&\#123\;/\{/g; #Left curly brace
s/\&\#124\;/|/g; #Vertical bar
s/\&\#125\;/\}/g; #Right curly brace
s/\&\#126\;/~/g; #Tilde
s/\&\#161\;/¡/g; #Inverted exclamation
s/\&\#162\;/¢/g; #Cent sign
s/\&\#163\;/£/g; #Pound sterling
s/\&\#164\;/¤/g; #General currency sign
s/\&\#165\;/¥/g; #Yen sign
s/\&\#166\;/¦/g; #Broken vertical bar
s/\&\#167\;/§/g; #Section sign
s/\&\#168\;/¨/g; #Umlaut (dieresis)
s/\&\#169\;/©/g; s/\©\;/©/g; #Copyright
s/\&\#170\;/ª/g; #Feminine ordinal
s/\&\#171\;/«/g; #Left angle quote, guillemotleft
s/\&\#172\;/¬/g; #Not sign
s/\&\#174\;/®/g; #Registered trademark
s/\&\#175\;/¯/g; #Macron accent
s/\&\#176\;/°/g; #Degree sign
s/\&\#177\;/±/g; #Plus or minus
s/\&\#178\;/²/g; #Superscript two
s/\&\#179\;/³/g; #Superscript three
s/\&\#180\;/´/g; #Acute accent
s/\&\#181\;/µ/g; #Micro sign
s/\&\#182\;/¶/g; #Paragraph sign
s/\&\#183\;/·/g; #Middle dot
s/\&\#184\;/¸/g; #Cedilla
s/\&\#185\;/¹/g; #Superscript one
s/\&\#186\;/º/g; #Masculine ordinal
s/\&\#187\;/»/g; #Right angle quote, guillemotright
s/\&\#188\;/¼/g; s/\¼\;/¼/g; # Fraction one-fourth
s/\&\#189\;/½/g; s/\½\;/½/g; # Fraction one-half
s/\&\#190\;/¾/g; s/\¾\;/¾/g; # Fraction three-fourths
s/\&\#191\;/¿/g; #Inverted question mark
s/\&\#192\;/À/g; #Capital A, grave accent
s/\&\#193\;/Á/g; #Capital A, acute accent
s/\&\#194\;/Â/g; #Capital A, circumflex accent
s/\&\#195\;/Ã/g; #Capital A, tilde
s/\&\#196\;/Ä/g; #Capital A, dieresis or umlaut mark
s/\&\#197\;/Å/g; #Capital A, ring
s/\&\#198\;/Æ/g; #Capital AE dipthong (ligature)
s/\&\#199\;/Ç/g; #Capital C, cedilla
s/\&\#200\;/È/g; #Capital E, grave accent
s/\&\#201\;/É/g; #Capital E, acute accent
s/\&\#202\;/Ê/g; #Capital E, circumflex accent
s/\&\#203\;/Ë/g; #Capital E, dieresis or umlaut mark
s/\&\#204\;/Ì/g; #Capital I, grave accent
s/\&\#205\;/Í/g; #Capital I, acute accent
s/\&\#206\;/Î/g; #Capital I, circumflex accent
s/\&\#207\;/Ï/g; #Capital I, dieresis or umlaut mark
s/\&\#208\;/Ð/g; #Capital Eth, Icelandic
s/\&\#209\;/Ñ/g; #Capital N, tilde
s/\&\#210\;/Ò/g; #Capital O, grave accent
s/\&\#211\;/Ó/g; #Capital O, acute accent
s/\&\#212\;/Ô/g; #Capital O, circumflex accent
s/\&\#213\;/Õ/g; #Capital O, tilde
s/\&\#214\;/Ö/g; #Capital O, dieresis or umlaut mark
s/\&\#215\;/×/g; #Multiply sign
s/\&\#216\;/Ø/g; #Capital O, slash
s/\&\#217\;/Ù/g; #Capital U, grave accent
s/\&\#218\;/Ú/g; #Capital U, acute accent
s/\&\#219\;/Û/g; #Capital U, circumflex accent
s/\&\#220\;/Ü/g; #Capital U, dieresis or umlaut mark
s/\&\#221\;/Ý/g; #Capital Y, acute accent
s/\&\#222\;/Þ/g; #Capital THORN, Icelandic
s/\&\#223\;/ß/g; #Small sharp s, German (sz ligature)
s/\&\#224\;/à/g; #Small a, grave accent
s/\&\#225\;/á/g; #Small a, acute accent
s/\&\#226\;/â/g; #Small a, circumflex accent
s/\&\#227\;/ã/g; #Small a, tilde
s/\&\#228\;/ä/g; #Small a, dieresis or umlaut mark
s/\&\#229\;/å/g; #Small a, ring
s/\&\#230\;/æ/g; #Small ae dipthong (ligature)
s/\&\#231\;/ç/g; #Small c, cedilla
s/\&\#232\;/è/g; #Small e, grave accent
s/\&\#233\;/é/g; #Small e, acute accent
s/\&\#234\;/ê/g; #Small e, circumflex accent
s/\&\#235\;/ë/g; #Small e, dieresis or umlaut mark
s/\&\#236\;/ì/g; #Small i, grave accent
s/\&\#237\;/í/g; #Small i, acute accent
s/\&\#238\;/î/g; #Small i, circumflex accent
s/\&\#239\;/ï/g; #Small i, dieresis or umlaut mark
s/\&\#240\;/ð/g; #Small eth, Icelandic
s/\&\#241\;/ñ/g; #Small n, tilde
s/\&\#242\;/ò/g; #Small o, grave accent
s/\&\#243\;/ó/g; #Small o, acute accent
s/\&\#244\;/ô/g; #Small o, circumflex accent
s/\&\#245\;/õ/g; #Small o, tilde
s/\&\#246\;/ö/g; #Small o, dieresis or umlaut mark
s/\&\#247\;/÷/g; #Division sign
s/\&\#248\;/ø/g; #Small o, slash
s/\&\#249\;/ù/g; #Small u, grave accent
s/\&\#250\;/ú/g; #Small u, acute accent
s/\&\#251\;/û/g; #Small u, circumflex accent
s/\&\#252\;/ü/g; #Small u, dieresis or umlaut mark
s/\&\#253\;/ý/g; #Small y, acute accent
s/\&\#254\;/þ/g; #Small thorn, Icelandic
s/\&\#255\;/ÿ/g; #Small y, dieresis or umlaut mark
s/^\s+//;
return $_;
}
up.sh
#!/bin/sh
# Version 1.1.b2
#########################################################################################################################
### configuration setting
# # of packages in output list
list_len=0
# Conky parse code for "system is up to date" line
conky_parse_siutd=
# Conky parse code inserted before every package name
conky_parse_pkg=
# Conky parse code inserted before every package size
conky_parse_size='${goto 160}'
# Show a summary line at the end 'true' or anything
show_summary='true'
# Show remove package summary line at end. Set to 'true' or anything
show_remove_summary='true'
# # of packages in remove list, set to 0 to disable the list
rlist_len=0
# Notice that 'show_remove_summary' MUST be set to 'true' if you want to show a list of those packages
# Conky parse code inserted before summary line
conky_parse_summary=
### End of configuration
#########################################################################################################################
declare -a pkg size
IFS=`echo -en "\n\b"`
if [ "$show_remove_summary" = 'true' ]; then
for i in $(pacman -Qu | sed -n '/Remove/,/Total Re/p' | sed 's/\t/\n/; s/: /\n/; s/ /\n/g' | sed 's/^ //; /^$/d' | grep ']' | sed 's/ /!/' | cut -d '!' -f1 );
do rpkg=( "${rpkg[@]}" "$i" )
done
for i in $(pacman -Qu | sed -n '/Remove/,/Total Re/p' | sed 's/\t/\n/; s/: /\n/; s/ /\n/g' | sed 's/^ //; /^$/d' | grep ']' | sed 's/ /!/' | cut -d '!' -f2 );
do rsize=( "${rsize[@]}" "$i" )
done
fi
for i in $(pacman -Qu | sed 's/\t/\n/; s/: /\n/; s/ /\n/g' | sed -n '/Targets /,$p' | sed 's/^ //; /^$/d' | grep ']' | sed 's/ /!/' | cut -d '!' -f1 );
do pkg=( "${pkg[@]}" "$i" )
done
for i in $(pacman -Qu | sed 's/\t/\n/; s/: /\n/; s/ /\n/g' | sed -n '/Targets /,$p' | sed 's/^ //; /^$/d' | grep ']' | sed 's/ /!/' | cut -d '!' -f2 );
do size=( "${size[@]}" "$i" )
done
IFS=$ORIGIFS
curr=0
if [ "$list_len" -gt "${#pkg[@]}" ]; then list_len=${#pkg[@]}; fi
if [ "$rlist_len" -gt "${#rpkg[@]}" ]; then rlist_len=${#rpkg[@]}; fi
if [ "${#pkg[@]}" = "0" ]; then echo $conky_parse_siutd "0"; exit 0; fi
while [ $curr != $list_len ]
do
echo $conky_parse_pkg ${pkg[$curr]} $conky_parse_size ${size[$curr]}
let "curr += 1"
done
if [ "$show_summary" = "true" ]; then echo $conky_parse_summary "${#pkg[@]}"; fi
if [ $show_remove_summary = 'true' ]; then
echo $conky_parse_siutd "${#rpkg[@]}";
fi
if [ "$rlist_len" -gt "0" ]; then
if [ "${#rpkg[@]}" -gt "0" ]; then
curr=0
while [ $curr != $rlist_len ]
do
echo $conky_parse_pkg ${rpkg[$curr]} $conky_parse_size ${rsize[$curr]}
let "curr += 1"
done
fi
fi
newpm.sh
#!/bin/sh
sh up.sh > ~/.pacmanupdates.txt
.conkyprvi
# conky configuration
# edited by Mark Buck (Kaivalagi) <m_buck@hotmail.com>
# set to yes if you want Conky to be forked in the background
background no
# 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-*-*-*-*-*-*-*
# Use Xft?
use_xft yes
# Xft font when Xft is enabled
xftfont Liberation Mono:size=8
# Text alpha when using Xft
xftalpha 0.8
# 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 no
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 350 0
maximum_width 350
# Draw shades?
draw_shades no
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
draw_graph_borders yes
# Stippled borders?
stippled_borders 8
# border margins
border_margin 4
# border width
border_width 1
# Default colors and also border colors
default_color grey
default_shade_color black
default_outline_color grey
# own window options
own_window yes
own_window_transparent yes
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Text alignment, other possible values are commented
alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 490
gap_y 55
# 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 2
# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2
# 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 right
# colours
color1 grey
# light blue
color2 6892C6
# orange
#E77320
color3 0968E6
# green
color4 78BF39
# red
color5 CC0000
text_buffer_size 2048
# 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
# stuff after 'TEXT' will be formatted on screen
TEXT
${execpi 1800 conkyForecast --location=SRXX0016 --template=/home/dany/weather-ob}
weather-ob
${color white}${goto 25}Now ${goto 92}[--datatype=DW --startday=1 --shortweekday]${goto 155}[--datatype=DW --startday=2 --shortweekday]${goto 222}[--datatype=DW --startday=3 --shortweekday]${goto 285}[--datatype=DW --startday=4 --shortweekday]
${voffset 7}${goto 15}${font ConkyWeather:size=32}[--datatype=WF] [--datatype=WF --startday=1 --endday=4 --spaces=2]${font}
${goto 15}[--datatype=HT --hideunits --centeredwidth=3]/[--datatype=LT --hideunits --centeredwidth=3]${goto 87}[--datatype=HT --startday=1 --hideunits --centeredwidth=0]/[--datatype=LT --startday=1 --hideunits --centeredwidth=3]${goto 147}[--datatype=HT --startday=2 --hideunits --centeredwidth=3]/[--datatype=LT --startday=2 --hideunits --centeredwidth=3]${goto 210}[--datatype=HT --startday=3 --hideunits --centeredwidth=3]/[--datatype=LT --startday=3 --hideunits --centeredwidth=3]${goto 275}[--datatype=HT --startday=4 --hideunits --centeredwidth=3]/[--datatype=LT --startday=4 --hideunits --centeredwidth=3]
Za .conkyprvi treba da instaliras program conkyforecast,imas ga u AUR-u, i da ubacis tvoju lokaciju,kod mene je za Sremsku Mitrovicu.Za to kako da podesis vremensku prognozu idi na ubuntuforums.org i trazi conkyforecast.
.conkyrcdrugi
background no
#font Snap.se:size=8
#xftfont Snap.se:size=8
font Liberation Mono:size=8
use_xft yes
xftfont Liberation Mono:size=8
xftalpha 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 130 5
maximum_width 130
default_color white
default_shade_color 000000
default_outline_color 000000
alignment bottom_right
color1 F6F63B
color2 white
gap_x 50
gap_y -100
no_buffers yes
cpu_avg_samples 2
override_utf8_locale no
uppercase no
use_spacer no
TEXT
$color1
NAME CPU%
$color2${top name 1}${alignr}${top cpu 1}$color1
${top name 2}${alignr}${top cpu 2}
${top name 3}${alignr}${top cpu 3}
NAME MEM%
$color2${top_mem name 1}${alignr}${top_mem mem 1}$color1
${top_mem name 2}${alignr}${top_mem mem 2}
${top_mem name 3}${alignr}${top_mem mem 3}
.conkyrc1
background no
font HandelGotDLig:size=8
use_xft yes
xftfont HandelGotDLig:size=8
xftalpha 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 700 5
maximum_width 700
default_color white
default_shade_color 000000
default_outline_color 000000
alignment bottom_left
gap_x 50
gap_y 50
no_buffers yes
cpu_avg_samples 2
override_utf8_locale no
uppercase no
use_spacer no
TEXT
${exec tail -n5 /var/log/everything.log | cut -c -100}
Pazi da svugde gde ima zamenis dany sa tvojim user-om i da uradis chmod +x sa scriptama.
Ove conky-je pokrecem jednom scriptom koju sam ubacio u Startup Applications:
conky.sh
#!/bin/bash
sleep 30
conky -c ~/.conkyprvi &
conky -c ~/.conkyrc1 &
sleep 10
conky -c ~/.conkyrc &
conky -c ~/.conkyrcdrugi &
exit 0
Nadam se da nesto nisam zaboravio.