Почетак › Форуми › Линуксо веб сајт › Причаоница › Vas desktop
- This topic has 171 одговор, 52 гласа, and was last updated 12 years, 8 months раније by na12.
-
АуторЧланци
-
21. јануар 2009. у 4:32 pm #73608workyУчесник21. јануар 2009. у 5:18 pm #73609hAlleLuJaУчесник21. јануар 2009. у 5:39 pm #7361022. јануар 2009. у 8:30 am #73611na12Учесник3. април 2009. у 11:44 am #73612DemonУчесник
Najnovija: http://www.filehive.com/i.php?i=090403/radnapovrs.jpg
Plazmoidi:
„Trenutna svirka“
„Birač boja“
„Custom Weather Plasmoid“
„Translatoid“
„Spell Check“
moja superkaramba tema 🙂6. април 2009. у 2:40 pm #73613rellikУчесник7. април 2009. у 11:04 am #73614marelliУчесник@na
Ae napisi sta si sve nabudzio na svom GNOME-u, stvarno extra izgleda! 🙂 O0
Mislim za ove zadnje screenshotove od 5.04.2009! A i ovo raniji su dobri!
7. април 2009. у 12:01 pm #73615na12Гост@na
Ae napisi sta si sve nabudzio na svom GNOME-u, stvarno extra izgleda! 🙂 O0
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 noTEXT
${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 "$newn";} #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$emails){print "$emails out of $size new emails displayedn";}
}
}
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$emails){print "$emails out of $size new emails displayedn";}
}
}
else {
print "Usage Error: gmail.pl n";
print "tn displays number of new emailsn";
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 "ttsubject 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:[email protected]/mail/feed/atom --no-check-certificate> $file`;open(IN, $file); #open $file
my $i=0; #initialize count
$new=0; #initialize new emails to 0my $flag=0;
while(){ #cycle through $file
if(//){$flag=1;}
elsif(/(d+)/){$new=$1;} #grab number of new emails
elsif($flag==1){
if(/.+ /){push(@subj, &msg);} #grab new email titles
elsif(/(.+)/){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//%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/(.+) /$1/; #get just the subject
#now replace any special characters
s/!/!/g; #Exclamation mark
s/"/"/g; s/"/"/g; #Quotation mark
s/#/#/g; #Number sign
s/$/$/g; #Dollar sign
s/%/%/g; #Percent sign
s/&/&/g; s/&/&/g; #Ampersand
s/'/'/g; #Apostrophe
s/(/(/g; #Left parenthesis
s/)/)/g; #Right parenthesis
s/*/*/g; #Asterisk
s/+/+/g; #Plus sign
s/,/,/g; #Comma
s/-/-/g; #Hyphen
s/././g; #Period (fullstop)
s/////g; #Solidus (slash)
s/:/:/g; #Colon
s/;/;/g; #Semi-colon
s/</</g; s/<//g; s/>/>/g; #Greater than
s/?/?/g; #Question mark
s/@/@/g; #Commercial at
s/[/[/g; #Left square bracket
s/\/\/g; #Reverse solidus (backslash)
s/]/]/g; #Right square bracket
s/^/^/g; #Caret
s/_/_/g; #Horizontal bar (underscore)
s/`/`/g; #Acute accent
s/{/{/g; #Left curly brace
s/|/|/g; #Vertical bar
s/}/}/g; #Right curly brace
s/~/~/g; #Tilde
s/¡/¡/g; #Inverted exclamation
s/¢/¢/g; #Cent sign
s/£/£/g; #Pound sterling
s/¤/¤/g; #General currency sign
s/¥/¥/g; #Yen sign
s/¦/¦/g; #Broken vertical bar
s/§/§/g; #Section sign
s/¨/¨/g; #Umlaut (dieresis)
s/©/©/g; s/©/©/g; #Copyright
s/ª/ª/g; #Feminine ordinal
s/«/«/g; #Left angle quote, guillemotleft
s/¬/¬/g; #Not sign
s/®/®/g; #Registered trademark
s/¯/¯/g; #Macron accent
s/°/°/g; #Degree sign
s/±/±/g; #Plus or minus
s/²/²/g; #Superscript two
s/³/³/g; #Superscript three
s/´/´/g; #Acute accent
s/µ/µ/g; #Micro sign
s/¶/¶/g; #Paragraph sign
s/·/·/g; #Middle dot
s/¸/¸/g; #Cedilla
s/¹/¹/g; #Superscript one
s/º/º/g; #Masculine ordinal
s/»/»/g; #Right angle quote, guillemotright
s/¼/¼/g; s/¼/¼/g; # Fraction one-fourth
s/½/½/g; s/½/½/g; # Fraction one-half
s/¾/¾/g; s/¾/¾/g; # Fraction three-fourths
s/¿/¿/g; #Inverted question mark
s/À/À/g; #Capital A, grave accent
s/Á/Á/g; #Capital A, acute accent
s/Â/Â/g; #Capital A, circumflex accent
s/Ã/Ã/g; #Capital A, tilde
s/Ä/Ä/g; #Capital A, dieresis or umlaut mark
s/Å/Å/g; #Capital A, ring
s/Æ/Æ/g; #Capital AE dipthong (ligature)
s/Ç/Ç/g; #Capital C, cedilla
s/È/È/g; #Capital E, grave accent
s/É/É/g; #Capital E, acute accent
s/Ê/Ê/g; #Capital E, circumflex accent
s/Ë/Ë/g; #Capital E, dieresis or umlaut mark
s/Ì/Ì/g; #Capital I, grave accent
s/Í/Í/g; #Capital I, acute accent
s/Î/Î/g; #Capital I, circumflex accent
s/Ï/Ï/g; #Capital I, dieresis or umlaut mark
s/Ð/Ð/g; #Capital Eth, Icelandic
s/Ñ/Ñ/g; #Capital N, tilde
s/Ò/Ò/g; #Capital O, grave accent
s/Ó/Ó/g; #Capital O, acute accent
s/Ô/Ô/g; #Capital O, circumflex accent
s/Õ/Õ/g; #Capital O, tilde
s/Ö/Ö/g; #Capital O, dieresis or umlaut mark
s/×/×/g; #Multiply sign
s/Ø/Ø/g; #Capital O, slash
s/Ù/Ù/g; #Capital U, grave accent
s/Ú/Ú/g; #Capital U, acute accent
s/Û/Û/g; #Capital U, circumflex accent
s/Ü/Ü/g; #Capital U, dieresis or umlaut mark
s/Ý/Ý/g; #Capital Y, acute accent
s/Þ/Þ/g; #Capital THORN, Icelandic
s/ß/ß/g; #Small sharp s, German (sz ligature)
s/à/à/g; #Small a, grave accent
s/á/á/g; #Small a, acute accent
s/â/â/g; #Small a, circumflex accent
s/ã/ã/g; #Small a, tilde
s/ä/ä/g; #Small a, dieresis or umlaut mark
s/å/å/g; #Small a, ring
s/æ/æ/g; #Small ae dipthong (ligature)
s/ç/ç/g; #Small c, cedilla
s/è/è/g; #Small e, grave accent
s/é/é/g; #Small e, acute accent
s/ê/ê/g; #Small e, circumflex accent
s/ë/ë/g; #Small e, dieresis or umlaut mark
s/ì/ì/g; #Small i, grave accent
s/í/í/g; #Small i, acute accent
s/î/î/g; #Small i, circumflex accent
s/ï/ï/g; #Small i, dieresis or umlaut mark
s/ð/ð/g; #Small eth, Icelandic
s/ñ/ñ/g; #Small n, tilde
s/ò/ò/g; #Small o, grave accent
s/ó/ó/g; #Small o, acute accent
s/ô/ô/g; #Small o, circumflex accent
s/õ/õ/g; #Small o, tilde
s/ö/ö/g; #Small o, dieresis or umlaut mark
s/÷/÷/g; #Division sign
s/ø/ø/g; #Small o, slash
s/ù/ù/g; #Small u, grave accent
s/ú/ú/g; #Small u, acute accent
s/û/û/g; #Small u, circumflex accent
s/ü/ü/g; #Small u, dieresis or umlaut mark
s/ý/ý/g; #Small y, acute accent
s/þ/þ/g; #Small thorn, Icelandic
s/ÿ/ÿ/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 "nb"`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" )
donefor 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
fifor 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" )
donefor 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" )
doneIFS=$ORIGIFS
curr=0if [ "$list_len" -gt "${#pkg[@]}" ]; then list_len=${#pkg[@]}; fi
if [ "$rlist_len" -gt "${#rpkg[@]}" ]; then rlist_len=${#rpkg[@]}; fiif [ "${#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"
doneif [ "$show_summary" = "true" ]; then echo $conky_parse_summary "${#pkg[@]}"; fi
if [ $show_remove_summary = 'true' ]; then
echo $conky_parse_siutd "${#rpkg[@]}";
fiif [ "$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)# 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 CC0000text_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.18. април 2009. у 3:28 am #73616LimitManУчесникAjd i ja malo 😉
20. април 2009. у 4:25 pm #73617burgaУчесникхехе, Експлорер 6
-
АуторЧланци
Мораш бити пријављен да би поставио коментар у овој теми.