: 22 kwietnia 2007, 08:01
jang, być może nie trzeba. Ale akurat miałem ochotę na skrypt W ogóle nie wiedziałem, że conky to umożliwia. Przetestuję to. Dzięki wielkie.
Pozdrawiam.
Pozdrawiam.
Polski portal użytkowników dystrybucji Debian GNU/Linux, dyskusje, artykuły, nowości, blog, porady, pomoc.
https://593930.wb34atkl.asia/
Kod: Zaznacz cały
background yes
#prawy dolny rog
gap_x 1050
gap_y 0
maximum_width 200
font -*-fixed-medium-r-*-*-18-120-*-*-*-*-iso10646-1
#font -misc-fixed-*-*-*-*-*-*-*-*-*-*-iso8859-2
# X font when Xft is disabled, you can pick one with program xfontsel
#font -*-*-*-r-normal--14-*-*-*-c-*-iso8859-2
#font -xos4-terminus-*-r-normal-*-14-100-*-*-c-*-iso10646-1
#font -xos4-terminus-*-r-normal-*-15-100-*-*-c-*-iso8859-2
#font -xos4-schoolbook-*-r-normal-*-12-100-*-*-c-*-iso8859-2
#font -schoolbook-medium-r-normal-*-*-90-*-*-p-*-iso8859-2
# Use Xft?
use_xft yes
#xftfont Bitstream Vera Sans Mono:size=8
#xftfont Terminus:encoding=iso8859-2:size=9
xftfont Terminus:size=9
xftalpha 0.9
update_interval 1.0
total_run_times 0
own_window yes
#own_window_type desktop
own_window_type override
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
own_window_transparent yes
# If own_window_transparent is set to no, you can set the background colour here
own_window_colour hotpink
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
draw_shades yes
draw_outline no
draw_borders no
stippled_borders 8
border_margin 4
border_width 1
default_color white
default_shade_color black
default_outline_color white
alignment top_left
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
use_spacer yes
TEXT
${color #ddaa00}${font Terminus:encoding=iso8859-2:size=15}${time %A}${color}
${font :encoding=iso8859-2:size=9}$alignc${color #ddaa00}${time %e %B %G}
${color slate grey}Kernel:
$alignc${color }$kernel
${color slate grey}UpTime:
$alignc${color }$uptime
${color slate grey}Load:
$alignc${color }$loadavg
${color }${color slate grey}CPU: $color%${color #ddaa00}$cpu$alignr$color$running_processes/ $processes
${color }MB:$color ${i2c 9191-0290 temp 2} °C ${color }CPU:$color ${i2c 9191-0290 temp 1} °C
${color }FAN:$color ${i2c 9191-0290 fan 1} RPM
${color slate grey}${cpugraph 25,200 000000 ffffff}
${font :size=8}${color #ddaa00}${top name 1}$alignr${top cpu 1}
${color lightgrey}${top name 2}$alignr${top cpu 2}
${color lightgrey}${top name 3}$alignr${top cpu 3}
${color lightgrey}${top name 4}$alignr${top cpu 4}
${font :size=9}
${color slate grey}RAM: $color%$memperc ${alignr}$mem
${membar 5,200}
${color slate grey}SWAP: $color%$swapperc ${alignr}$swap
${swapbar 5,200}
${font :size=8}${color #ddaa00}${top_mem name 1}$alignr${top_mem mem 1}
${color lightgrey}${top_mem name 2}$alignr${top_mem mem 2}
${color lightgrey}${top_mem name 3}$alignr${top_mem mem 3}
${color lightgrey}${top_mem name 4}$alignr${top_mem mem 4}
${font :size=9}
${color slate grey}HDD Temp: $color${execi 1 /home/mesiu/.conky_script_sdatemp}
${color #ddaa00} °C $color${execi 1 /home/mesiu/.conky_script_sdbtemp}
${color #ddaa00} °C
${color slate grey}HDD:$color$alignr$diskio
${color slate grey}${diskiograph 25,200 000000 ff0000}
${color slate grey} /:${alignr}${color }${fs_free /}
${color slate grey} /home:${alignr}${color }${fs_free /home}
${color slate grey} /home/mesiu/DC:${alignr}${color }${fs_free /home/mesiu/DC}
${color slate grey} /mnt/win_c:${alignr}${color }${fs_free /mnt/win_c}
${color slate grey} /mnt_win_d:${alignr}${color }${fs_free /mnt/win_d}
${color slate grey} /mnt_win_e:${alignr}${color }${fs_free /mnt/win_e}
${color slate grey} /mnt_win_g:${alignr}${color }${fs_free /mnt/win_g}
${color slate grey} /mnt_win_h:${alignr}${color }${fs_free /mnt/win_h}
${color slate grey}INTERNET:
${color}DL:${color #ddaa00}${downspeed eth0}${color}UP:${color #ddaa00}${upspeed eth0}${color}${alignr}KiB/s
${offset 10}${color}Total: ${color white}${totaldown eth0}
${offset 10}${color}Total: ${color white}${totalup eth0}
${color slate grey}${downspeedgraph eth0 25,200 000000 00ff00}
${color slate grey}${upspeedgraph eth0 25,200 000000 0000ff}
${color #0077ff}@Connections@
$color Outbound: ${tcp_portmon 32768 61000 count}
$color Inbound: ${tcp_portmon 1 32767 count}
${color #0077ff}Outbound Connection ${alignr} Port$color
${tcp_portmon 32768 61000 rip 0} ${alignr} ${tcp_portmon 32768 61000 rservice 0}
${tcp_portmon 32768 61000 rip 1} ${alignr} ${tcp_portmon 32768 61000 rservice 1}
${tcp_portmon 32768 61000 rip 2} ${alignr} ${tcp_portmon 32768 61000 rservice 2}
${tcp_portmon 32768 61000 rip 3} ${alignr} ${tcp_portmon 32768 61000 rservice 3}
${tcp_portmon 32768 61000 rip 4} ${alignr} ${tcp_portmon 32768 61000 rservice 4}
${tcp_portmon 32768 61000 rip 4} ${alignr} ${tcp_portmon 32768 61000 rservice 5}
${tcp_portmon 32768 61000 rip 4} ${alignr} ${tcp_portmon 32768 61000 rservice 6}
${tcp_portmon 32768 61000 rip 4} ${alignr} ${tcp_portmon 32768 61000 rservice 7}
${tcp_portmon 32768 61000 rip 4} ${alignr} ${tcp_portmon 32768 61000 rservice 8}
${tcp_portmon 32768 61000 rip 4} ${alignr} ${tcp_portmon 32768 61000 rservice 9}
${tcp_portmon 32768 61000 rip 4} ${alignr} ${tcp_portmon 32768 61000 rservice 10}
Muszą być ;-) Miałem UTF-8 i szczerze polecam, ale nie mam go, ze względu na ekg2.też o tym czytałem ale gdy ustawię utf-8 to nie będę miał polskich krzaczków s konsoli
Kod: Zaznacz cały
.fluxbox/check_gmail.sh: line 11: --no-check-certificate: command not found
GMail: <?xml version="1.0" encoding="UTF-8"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#">
<title>Gmail - Inbox for [email][email protected][/email]</title>
<tagline>New messages in your Gmail Inbox</tagline>
<fullcount>1</fullcount><link rel="alternate" href="http://mail.google.com/mail" type="text/html"/>
<modified>2007-05-08T08:30:54Z</modified><entry><title>test</title>
<summary>treÅÄ</summary><link rel="alternate" href="http://mail.google.com/mail?account_id=gpszkit%40gmail.com&
message_id=1126ac129c49268b&view=conv&extsrc=atom" type="text/html"/><modified>2007-05-08T08:14:43Z</modified><issued>2007-05-08T08:14:43Z</issued>
<id>tag:gmail.google.com,2004:1235864343691208331</id>
<author><name>Szczypior</name><email>[email protected]</email></author></entry></feed> list(ów)
Kod: Zaznacz cały
#!/bin/bash
gmail_login="login" #login do skrzyki
gmail_password="psw" #hasło do konta
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
echo "GMail: $dane list(ów)"
fi
Co do pierwszego to po prostu nic nie będzie pisać. A co do drugiego to możesz od razu dać aptitude dist-upgrade, bo update masz już zrobiony przez skrypt.szczypior88 pisze:2) Monitor aktualizacji: czy można w jakiś sposób spowodować, że przy braku pakietów do aktualizaji pokaże taki właśnie komunikat? czy jak pojawi się jakaś aktualizacja wystarczy wklepać tylko aptitude dist-upgrade?
No chyba jednak mijasz się z prawdą...szczypior88 pisze:plik wygląda tak:więc jest dokładną kopią skryptu z HowToKod: Zaznacz cały
#!/bin/bash gmail_login="login" #login do skrzyki gmail_password="psw" #hasło do konta 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>//]; then echo "Connection Error !" else echo "GMail: $dane list(ów)" fi
Kod: Zaznacz cały
https://${gmail_login}:${gmail_password}@mail.google.com/mail/feed/atom
\
--no-check-certificate | grep 'fullcount' \