



Zwopper wrote:@NWAdawg: Your background looks like a seatbelt - That's different!



conky.sh#!/bin/bash
sleep 25;
conky -c /home/cupra/.conkyrc &
conky -c /home/cupra/.conkyrc2 &
.conkyrcbackground yes
use_xft yes
xftfont Bitstream Vera Sans Mono:size=7
xftalpha 0.8
mail_spool $MAIL
update_interval 1.5
out_to_console no
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_colour hotpink
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
maximum_width 310
minimum_size 280 5
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
stippled_borders 0
border_margin 4
border_width 1
default_color WHITE
default_shade_color lightgrey
default_outline_color grey
alignment top_right
gap_x 10
gap_y 30
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer yes
TEXT
${alignc}Salut Alex! On est le ${time %A %d %B}
${alignc}Linux Mint Xfce ${color grey}$kernel $machine${color}
${alignc}${color grey}AC:$color ${acpiacadapter} ${battery BAT0} ${battery_time}
${font Webdings:style=Regular:pixelsyze=8}i${font Bitstream Vera Sans Mono:size=7} Météo ${hr 2}
${execi 1300 perl ~/scripts/weather.pl BEXX0005 c w}
${color white}${voffset -30}$alignr${offset -50}${execi 3600 perl ~/scripts/weather.pl BEXX0005 c t}
${color white}${voffset -35}$alignr${offset -70}${font weather:size=45}${execi 3600 perl ~/scripts/weather.pl BEXX0005 c cp}$font
${font Webdings:style=Regular:pixelsyze=8}i${font Bitstream Vera Sans Mono:size=7} Audacious ${hr 2}
| ${exec audtool --current-song-length} ${exec audtool --current-song-bitrate-kbps} kbps
| ${exec audtool --current-song | cut -b-40}
| ${execbar expr 99 \* $(audtool --current-song-output-length-seconds) \/ $(audtool --current-song-length-seconds)}
${font Webdings:style=Regular:pixelsyze=8}i${font Bitstream Vera Sans Mono:size=7} Processeur ${hr 2}
${alignc}${color grey}${texeci 60000 cat /proc/cpuinfo | grep "model name" | sort -u | cut -d":" -f2 | sed "s# ##g"}$color
| CPU Frequency : $freq_dyn_g${alignr}Max : $freq_g
| Util. Core1 : ${cpu cpu1}% ${alignr}${cpugraph 10,100 40 FF0033 FF0000}
| Util. Core2 : ${cpu cpu2}% ${alignr}${cpugraph 10,100 40 FF0033 FF0000}
| Core1 : ${exec expr `cat /sys/bus/platform/devices/coretemp.0/temp1_input` / 1000} ° ${alignr} Core2 : ${exec expr `cat /sys/bus/platform/devices/coretemp.1/temp1_input` / 1000} °
${color grey}${alignc}$running_processes processus en cours sur $processes${color}
NOM : ${alignr 90} PID ${alignr 50}CPU% ${alignr}MEM%
| ${color grey}${top name 1} ${alignr 65} ${top pid 1} ${alignr 40}${top cpu 1} $alignr${top mem 1}${color}
| ${color grey}${top name 2} ${alignr 65} ${top pid 2} ${alignr 40}${top cpu 2} $alignr${top mem 2}${color}
| ${color grey}${top name 3} ${alignr 65} ${top pid 3} ${alignr 40}${top cpu 3} $alignr${top mem 3}${color}
${font Webdings:style=Regular:pixelsyze=8}i${font Bitstream Vera Sans Mono:size=7} Mémoire Ram ${hr 2}
| Mémoire Ram : ${alignr}$mem / $memmax
| Charge Ram : $memperc% ${alignr}${cpugraph 10,100 40 FF0033 FF0000}
| Swap Usage: ${alignr}$swap / $swapmax
NOM : ${alignr 90} PID ${alignr 50}CPU% ${alignr}MEM%
| ${color grey}${top_mem name 1} ${alignr 65} ${top_mem pid 1} ${alignr 40}${top_mem cpu 1} $alignr${top_mem mem 1}${color}
| ${color grey}${top_mem name 2} ${alignr 65} ${top_mem pid 2} ${alignr 40}${top_mem cpu 2} $alignr${top_mem mem 2}${color}
| ${color grey}${top_mem name 3} ${alignr 65} ${top_mem pid 3} ${alignr 40}${top_mem cpu 3} $alignr${top_mem mem 3}${color}
${font Webdings:style=Regular:pixelsyze=8}i${font Bitstream Vera Sans Mono:size=7} Stockage ${hr 2}
${alignc}${color grey}HDD FUJITSU MHW2120BH : ${execi 10 hddtemp -n /dev/sda} °${color}
| Minthd : ${alignc}${fs_size /}il reste ${fs_free /}soit ${alignr}${fs_free_perc /}%
| Stockage : ${alignc}${fs_size /media/Stockage}il reste ${fs_free /media/Stockage}soit ${alignr}${fs_free_perc /media/Stockage}%
| Partage : ${alignc}${fs_size /media/Partage}il reste ${fs_free /media/Partage}soit ${alignr}${fs_free_perc /media/Partage}%
| Hdd I/O acces :${diskio} ${alignr}${diskiograph 10,90 40 FF0033 FF0000}
+USB Devices :
| TDK : ${if_mounted /media/TDK}il reste ${fs_free /media/TDK}/ ${fs_size /media/TDK}soit ${fs_free_perc /media/TDK}% $else ${alignc}disque non-monté$endif
| COL : ${if_mounted /media/COL}il reste ${fs_free /media/COL}/ ${fs_size /media/COL}soit ${fs_free_perc /media/COL}% $else ${alignc}disque non-monté$endif
| SD : ${if_mounted /media/disk}il reste ${fs_free /media/disk}/ ${fs_size /media/disk}soit ${fs_free_perc /media/disk}% $else ${alignc}disque non-monté$endif
${font Webdings:style=Regular:pixelsyze=8}i${font Bitstream Vera Sans Mono:size=7} Internet ${hr 2}
${alignc}IP Publique : ${color grey}${execi 3600 wget -O - http://ip.tupeux.com | tail}${color}
+IP Wired : ${alignr}${color grey}${addr eth0}${color}
| ${if_up eth0}GateWay IP :${color grey}$alignr${gw_ip}${else}GateWay IP [eth0]$alignr Not-Associated$endif${color}
| ${downspeedgraph eth0 10,125 40 FF0033 FF0000} ${alignr}${upspeedgraph eth0 10,125 40 FF0033 FF0000}
Reçu : ${totaldown eth0}${alignr}Envoyé : Up: ${totalup eth0}
+IP Wifi : ${alignr}${addr wlan0}
| Accès : ${wireless_essid wlan0}${alignr}Taux : ${wireless_bitrate wlan0}
| Signal WIFI : ${wireless_link_qual wlan0}% ${alignr}${wireless_link_bar 7,120 wlan0}
| ${downspeedgraph wlan0 10,125 40 FF0033 FF0000} ${alignr}${upspeedgraph wlan0 10,125 40 FF0033 FF0000}
Reçu : ${totaldown wlan0}${alignr}Envoyé : ${totalup wlan0}
.conkyrc2background yes
use_xft yes
xftfont Bitstream Vera Sans Mono:size=7
xftalpha 0.8
mail_spool $MAIL
update_interval 1.5
out_to_console no
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_colour hotpink
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
maximum_width 310
minimum_size 280 5
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
stippled_borders 0
border_margin 1
border_width 1
default_color WHITE
default_shade_color lightgrey
default_outline_color grey
alignment bottom_left
gap_x 1
gap_y 1
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer yes
TEXT
\\\\////
( O O )
------oO0---(_)---0Oo-------
${font Webdings:style=Regular:pixelsyze=8}i${font Bitstream Vera Sans Mono:size=7} Mail ${hr 2}
${color RED}${font FreeSans:size=12}@${font} ${color WHITE}E-mail (set here your name) : ${color grey}${execi 1200 ~/scripts/check_gmail.sh}${color}
${color RED}${font FreeSans:size=12}@${font} ${color WHITE}E-mail (if you want an other one): ${color grey}${execi 1200 ~/scripts/check_gmailbis.sh}${color}
${font Webdings:style=Regular:pixelsyze=8}i${font Bitstream Vera Sans Mono:size=7} Anniversaires : ${hr 2}
${color #0077ff}${font Bitstream Vera Sans Mono:size=7}${execi 1800 birthday -W 80}${color}
${font Webdings:style=Regular:pixelsyze=8}i${font Bitstream Vera Sans Mono:size=7} Flux RSS ${hr 2}
${color #0077ff}Programme-tv${color}
${rss http://programme-tv.krinein.com/programmes.rss 5 item_title 0}
${rss http://programme-tv.krinein.com/programmes.rss 5 item_title 2}
${color #0077ff}Stargate Atlantis - Season 5:${color}
${rss http://www.here the link to the server you want see 5 item_title 0}
${rss http://www.here the link to the server you want see 5 item_title 1}
${color #0077ff}Knight Rider (2008) - Season 1:${color}
${rss http://www.here the link to the server you want see item_title 0}
${rss http://www.here the link to the server you want see 1 item_title 1}
${color #0077ff}RSS Bla bla blaaaa :${color}
${rssset http://www.here the link to the server you want see item_title 0}
${rss http://www.here the link to the server you want see item_title 1}
${rss http://www.here the link to the server you want see item_title 2}
${rss http://www.here the link to the server you want seeitem_title 3}
.birthdaysBlaBla=00/00/0001
BlibLi=00/00/0001
BlouBou=00/00/0001
BlueBlue=00/00/0001
BlackBlack=00/00/0001
BromBrom=00/00/0001
weather.pl#!/usr/bin/perl
use Switch;
use Encode;
use Text::Wrap;
# This script was written by lvleph and inspired by the original conky weather script written by azhag (azhag@bsd.miki.eu.org)
# Modyfied by LazarusHC to list more details
$code=$ARGV[0]; #zipcode or weather.com city code
$system=$ARGV[1]; #f for imperial c for metric
$what=$ARGV[2]; #what are we looking for?
$file="/tmp/weather.html"; #temp holding weather
$update=1300; #time in seconds to update $file if set to 0 don't use $file
$leadspace=" "; #spacing before each high low
$trailspace=" "; #spacing after each high low.
$fspaces=""; #spacing between condition symbols.
$dspaces=" "; #spacing between each day
$lines="\n\n\n\n"; #each \n represents one line between the days and temps
$Text::Wrap::columns = 58;
$initial_tab=""; #tab before first line in weather output
$subsequent_tab="\t"; #tab before each subsequet line in weather output
$degree= encode_utf8( "\x{00B0}" ); #give me the degree symbol, not everyone has same locale
#ensure user inputs proper system
if($system !=~ "c" || $system !=~ "f"){$what=0;} #this will give usage error
switch($what){ #determine what user wants
case "c" { #if current conditions
&file_op; #save weather to $file
while(<FILE>){ #cycle through file
if (/<em>Current conditions/ .. /<h3>/){ #found current conditions
($cn2) = /<h3>(\b.+\b)<\/h3>/; #save current conditions
if($cn2){print "$cn2\n"; exit;}
}
}
}
case "w" { #if list
&file_op; #save weather to file
while(<FILE>){ #cycle through file
if (/<dt>Feels Like:<\/dt>/ .. /<dd>/){ #found feels like temp
($tmf) = /<dd>(-?\d+)/; #sav temp
}
if (/<dt>Humidity:<\/dt>/ .. /<dd>/){ #found current humidity
($hmt) = /<dd>(\d+\%)/; #save current humidity
}
if (/<dt>Wind:<\/dt>/ .. /<dd>/){ #found wind conditions
($wnd) = /<dd>(\b.+\b)<\/dd>/; #save wind conditions
#do we have current conditions?
if($tmf && $hmt && $wnd){
print "Température : $tmf$degree\n";
print "Humidité : $hmt\n";
print "Vent : $wnd\n"; exit;}
}
}
}
case "cp" { #if current conditions symbol
&file_op; #save weather to $file
while(<FILE>){ #cycle through file
if (/<em>Current conditions/ .. /<h3>/){ #found current conditions
($cnd) = /<h3>(\b.+\b)<\/h3>/; #save current conditions
#do we have current conditions? Then translate into symbol
if($cnd){cond_symb($cnd); print "$ctext\n"; exit;}
}
}
}
case "t" { #if current temp
&file_op; #save weather to $file
while(<FILE>){ #cycle through file
if (/<div id="forecast-temperature">/ .. /<h3>/){ #found current temp
($tmp) = /<h3>(-?\d+)/; #save current temp
#do we have current temp? Then print
if($tmp){print "$1$degree\n"; exit;}
}
}
}
case /[1-5]d$/ { #display the days up to specified day
&file_op; #save weather to $file
my $day=(split "t", $what)[0]; #how many days are we looking for
my $count=0;
while(<FILE>){
if(/<th>(\b.+\b)<\/th>/ && ++$count<=$day){ #look for the conditions upto specified day
$days[$count-1]=$1; #save day
&day_space($days);
}
elsif($count>=$day){print "$dtext\n"; exit;} #don't keep lopking if everything has been found
}
}
case /[1-5]dp$/ { #display the conditions from today through day $days
&file_op; #save weather to $file
my $day=(split "p", $what)[0]; #how many days are we looking for
my $flag=0; #set flag for when we find start of conditions
my $count=0;
while(<FILE>){
if(/^<tr class="titles">\s*$/){$flag=1;} #found the start of conditions
elsif($flag && /(\b.+\b)<\/td>/ && ++$count<=$day){ #look for the conditions upto specified day
$cnd[$count-1]=$1; #save conditions
&cond_symb ($cnd[$count-1]); #translate conditions to symbol
#exit;
}
elsif($count>=$day){print "$ctext\n"; exit;} #don't keep looking if everything has been found
}
}
case /[1-5]t$/ { #display the temps from today through day $days
&file_op; #save weather to $file
my $count=0;
my $day=(split "t", $what)[0]; #how many days are we looking for
while(<FILE>){
#get the high temp
(my $high) = /<td><strong>High: (-?\d+)°<\/strong><span>Low: \-?\d+°<\/span><\/td>/;
#get the low temp
(my $low) = /<td><strong>High: \-?\d+°<\/strong><span>Low: (-?\d+)°<\/span><\/td>/;
#print the high and low temp for the specified day
if($high=~/\d+/ && $low=~/\d+/ && ++$count<=$day){print "$leadspace$high$degree/$low$degree$trailspace";}
elsif($count>=$day){print "\n"; exit;} #don't keep looking if everything has been found
}
}
case /[1-5]dt$/ {
&file_op; #save weather to $file
my $count1 = my $count2=0;
my $day=(split "dt", $what)[0]; #how many days are we looking for
my $flag=1; #print days once
while(<FILE>){
#get the high temp
(my $high) = /<td><strong>High: (-?\d+)°<\/strong><span>Low: \-?\d+°<\/span><\/td>/;
#get the low temp
(my $low) = /<td><strong>High: \-?\d+°<\/strong><span>Low: (-?\d+)°<\/span><\/td>/;
#print the high and low temp for the specified day
if(/<th>(\b.+\b)<\/th>/ && ++$count1<=$day){ #look for the conditions upto specified day
$days[$count1-1]=$1; #save day
&day_space($days);
}
elsif($high=~/\d+/ && $low=~/\d+/ && ++$count2<=$day){$ttext.=$leadspace.$high.$degree."/".$low.$degree.$trailspace;}
elsif($count1>=$day && $count2>=$day){print "$dtext\n$lines$ttext\n"; exit;} #don't keep lopking if everything has been found
}
}
case /[1-7]w$/ { #display the weather forecast in words from today through day $days
&file_op; #save weather to $file
my $num=(split "w", $what)[0]; #how many are we looking for
my $count=0; #initialize count
while(<FILE>){ #cycle through file
#get the weather
(my $when) = /<li><strong>(\b.+\b\:)<\/strong>/;
(my $weather) = /<\/strong>(.+)<\/li>/;
$weather=$when.$weather;
#print weather
if($when && ++$count<=$num){
#print "$when";
print wrap($initial_tab, $subsequent_tab, $weather);
print "\n";
}
elsif($count>=$num){exit;} #don't keep looking if everything has been found
}
}
case /[1-5]p$/ { #if conditions of specified day
&file_op; #save weather to $file
my $day=(split "p", $what)[0]; #what day are we looking for
my $flag=0; #set flag for when we find start of conditions
my $count=0;
while(<FILE>){
if(/^<tr class="titles">\s*$/){$flag=1;} #found the start of conditions
elsif($flag && /(\b.+\b)<\/td>/ && ++$count==$day){ #look for the conditions for specified day
$cnd=$1; #save conditions
&cond_symb ($cnd); #translate conditions to symbol
}
elsif($count>=$day){print "$ctext\n"; exit;} #don't keep looking if everything has been found
}
}
case /[1-5]$/ { #if temp of specified day
&file_op; #save weather to $file
while(<FILE>){
#get the high temp
($high) = /<td><strong>High: (-?\d+)°<\/strong><span>Low: \-?\d+°<\/span><\/td>/;
#get the low temp
($low) = /<td><strong>High: \-?\d+°<\/strong><span>Low: (-?\d+)°<\/span><\/td>/;
#print the high and low temp for the specified day
if($high && $low && ++$count==$what){print "$high$degree/$low$degree\n";}
}
}
else { #didn't give proper options
&usage; #print usage error
}
}
#print "\n"; # need endline to make things look nice
close FILE;
sub file_op { #do file operations
if(-e $file ){ #does the file exist and is not empty?
my $size=`stat -c %s $file`;
if($size >= 1000){
my $date=`date -u +%s`; #get current date in seconds
my $created=`stat -c %Y $file`; #get creation date of file in seconds
$age=$date - $created; #determine age of file
}
else{
$age=$update+1;
}
}
else{ #if file doesn't exist make it and set to update the file
`touch $file`;
$age=$update+1;
}
if ($age>=$update){ #only get a new file every hour
#obtain the weather forecast and store it in $file
`wget -O - http://weather.yahoo.com/forecast/"$code"_"$system".html > $file`;
}
open(FILE, $file) or die "Could not open file $file: $!\n";
}
sub usage { #if correct options haven't been passed usage error
print "Usage error weather.pl <citycode> <system> <option>\n";
print "weather.pl <citycode> <system> <option>\n";
print "\t<citycode> - weather.com city code\n";
print "\t<system> - c for metric or f for imperial\n";
print "\t<option> - Only one option can be entered at a time\n";
print "\t\tc displays current conditions\n";
print "\t\tw displays list of current conditions\n";
print "\t\tcp displays current conditions symbol\n";
print "\t\tt displays current temp in chosen system\n";
print "\t\t[1-5]d displays the days up to specified day\n";
print "\t\t[1-5]dp displays condition symbol for days up to specified day\n";
print "\t\t[1-5]t displays high/low temp in chosen system up to specified day\n";
print "\t\t[1-5]dt displays days and then high/low temp in chosen system up to specified day\n";
print "\t\t[1-7]w displays the weather in words up number specified\n";
print "\t\t[1-5]p displays conditions for specified day\n";
print "\t\t[1-5] displays high/low temp in chosen system for specified day\n";
}
sub cond_symb { #translates conditions into symbol in weather font
if ($_ =~ "Partly Cloudy"){$_="c";}
elsif ($_ =~ "Fair" || $_ =~ "Sun" || $_ =~ "Clear"){$_="A";}
elsif ($_ =~ "Cloud" || $_ =~ "Fog"){$_="e";}
elsif ($_ =~ "Storm" || $_ =~ "Thunder" || $_ =~ "T-"){$_="i";}
elsif ($_ =~ "Snow" || $_ =~ "Flurries" || $_ =~ "Wintry"){$_="k";}
elsif ($_ =~ "Rain" || "Drizzle"){$_="h";}
elsif ($_ =~ "Shower"){$_="g";}
$ctext.=$_.$fspaces;
}
sub day_space { #Adds spaces for aligment
if ($_ =~ "Today"){$_=" Today ";}
elsif ($_ =~ "Tonight"){$_="Tonight";}
elsif ($_ =~ "Tomorrow"){$_="Tomorrow";}
elsif ($_ =~ "Thu"){$_=" Thu ";}
elsif ($_ =~ "Fri"){$_=" Fri ";}
elsif ($_ =~ "Sat"){$_=" Sat ";}
elsif ($_ =~ "Sun"){$_=" Sun ";}
elsif ($_ =~ "Mon"){$_=" Mon ";}
elsif ($_ =~ "Tue"){$_=" Tue ";}
elsif ($_ =~ "Wed"){$_=" Wed ";}
$dtext.=$_.$dspaces;}
check_gmail.sh#!/bin/bash
gmail_login="place your email here"
gmail_password="password"
dane="$(wget --secure-protocol=TLSv1 --timeout=3 -t 1 -q -O - \
https://${gmail_login}:${gmail_password}@mail.google.com/mail/feed/atom \
--no-check-certificate | grep 'fullcount' \
| sed -e 's/.*<fullcount>//;s/<\/fullcount>.*//' 2>/dev/null)"
if [ -z "$dane" ]; then
echo "Connection Error !"
else
case $dane in
0 ) echo "aucun message";;
1 ) echo "1 message";;
* ) echo "$dane messages";;
esac
fi
check_gmail.sh#!/bin/bash
gmail_login="set here your next gmail "
gmail_password="password"
dane="$(wget --secure-protocol=TLSv1 --timeout=3 -t 1 -q -O - \
https://${gmail_login}:${gmail_password}@mail.google.com/mail/feed/atom \
--no-check-certificate | grep 'fullcount' \
| sed -e 's/.*<fullcount>//;s/<\/fullcount>.*//' 2>/dev/null)"
if [ -z "$dane" ]; then
echo "Connection Error !"
else
case $dane in
0 ) echo "aucun message";;
1 ) echo "1 message";;
* ) echo "$dane messages";;
esac
fi






















Katzedecimal wrote:October desktop![]()
Cube transparencies at 25%. Skydome backsplash courtesy of mmesantos1 (thank you!! tapadh leat gu dearbh!!) Metabox window borders with Blueheart application theme (from art.gnome.org) and Oxygen-Refit 2 icon theme (from gnome-look.org) 'CopelandOS' skin on Gkrellm. The 'Glass' icon theme looks much prettier with this, but it isn't complete and the missing icons were standing out like sore thumbs, so I went back to Oxygen-Refit 2 (original blue.)
Zoomed out:
And in use:


Users browsing this forum: No registered users and 0 guests