Bardzo mi sie spodobal Desktop Radex'a. Prosilbym o dokladny opis jak taki zrobic ...

Kod: Zaznacz cały
chmod +x ~/.settings/tweather.sh
Kod: Zaznacz cały
conky ~/.conkyrc
Conky: /home/pawel/.conkyrc: 142: no such configuration: '${offset'
cat: /tmp/weather.txt: Nie ma takiego pliku ani katalogu
head: nie można otworzyć `/tmp/weather.txt' do czytania: Nie ma takiego pliku ani katalogu
cat: /tmp/weather.txt: Nie ma takiego pliku ani katalogu
head: nie można otworzyć `/tmp/weather.txt' do czytania: Nie ma takiego pliku ani katalogu
expr: argument nieliczbowy
Kod: Zaznacz cały
#!/bin/bash
city="DeWitt"
link=PLXX0049_c.html?force_units=1
file=/tmp/weather.txt
location=http://weather.yahoo.com/forecast/$link
#lynx -accept_all_cookies -dump $location > $file
begin=`cat -n $file | grep "Currently" | cut -d ' ' -f5`
end=`expr $begin + 40`
head -n $end $file > tmp.t
tail -n 41 tmp.t > $file
case $1 in
Today) head -n 6 $file | sed '3d' ;;
Tomorrow)
begin=`cat -n $file | grep 'Today Tomorrow' | cut -d ' ' -f5`
end=`cat -n $file | grep 'Extended' | cut -d ' ' -f5`
num=`expr $end - $begin - 1`
end2=`expr $begin + 7`
head -n $end2 $file > tmp.t
tail -n 3 tmp.t | sed 's/sky/\n sky/' | sed '4d' ;;
*) exit ;;
esac
rm tmp.t
rm $file
Kod: Zaznacz cały
conky ~/.conkyrc
Conky: /home/pawel/.conkyrc: 142: no such configuration: '${offset'
cat: /tmp/weather.txt: Nie ma takiego pliku ani katalogu
head: nie można otworzyć `/tmp/weather.txt' do czytania: Nie ma takiego pliku ani katalogu
expr: argument nieliczbowy
Conky: desktop window (a3) is root window
Conky: drawing to desktop window
Conky: drawing to double buffer
Kod: Zaznacz cały
#!/bin/bash
city="Lublin"
#link=PLXX0012_c.html?force_units=1
link=PLXX0049_c.html?force_units=1
file=/tmp/weather.txt
location=http://weather.yahoo.com/forecast/$link
lynx -accept_all_cookies -dump $location > $file
begin=`cat -n $file | grep "Currently" | cut -d ' ' -f5`
end=`expr $begin + 40`
head -n $end $file > tmp.t
tail -n 41 tmp.t > $file
case $1 in
Today) head -n 6 $file | sed '3d' ;;
Tomorrow)
begin=`cat -n $file | grep 'Today Tomorrow' | cut -d ' ' -f5`
end=`cat -n $file | grep 'Extended' | cut -d ' ' -f5`
num=`expr $end - $begin - 1`
end2=`expr $begin + 7`
head -n $end2 $file > tmp.t
tail -n 3 tmp.t | sed 's/sky/\n sky/' | sed '4d' ;;
*) exit ;;
esac
rm tmp.t
rm $file
Kod: Zaznacz cały
#!/usr/bin/perl
use IO::Socket;
$socket = IO::Socket::INET->new(PeerAddr => '127.0.0.1',
PeerPort => '7634',
Proto => 'tcp',
Timeout => '5')
or die "Nie moge sie połączyć z 127.0.0.1 na port 7634: $@\n";
$uchwyt = <$socket>;
$d = substr($uchwyt,-5,2)."C";
print "$d\n";
close ($socket);
Kod: Zaznacz cały
${color yellow}TempHDD: ${color}${execi 1800 ~/.settings/hddt.pl}
Kod: Zaznacz cały
conky ~/.conkyrc
Conky: /home/pawel/.conkyrc: 142: no such configuration: '${offset'
/home/pawel/.settings/tweather.sh: line 8: lynx: command not found
/home/pawel/.settings/tweather.sh: line 8: lynx: command not found
expr: argument nieliczbowy
Conky: desktop window (a3) is root window
Conky: drawing to desktop window
Conky: drawing to double buffer
Kod: Zaznacz cały
override_utf8_locale no
Kod: Zaznacz cały
override_utf8_locale yes
Kod: Zaznacz cały
aptitude install lynx
Kod: Zaznacz cały
debian:/# conky ~/.conkyrc
Conky: on_bottom is deprecated. use own_window_hints below
Conky: statfs '/mnt/d': No such file or directory
Conky: statfs '/mnt/c': No such file or directory
Conky: scandir for /sys/bus/i2c/devices/: No such file or directory
Naruszenie ochrony pamięci