News:

LMDE 6, unisce la praticità dell'ultima versione di cinnamon con la robustezza di debian 12

Menu principale

La mostra dei Conky

Aperto da danialbi, Sabato 20 Novembre 2010, 00:13:51

Discussione precedente - Discussione successiva

ken

Questo è un conky "rubato" dal forum di Crunchbang, vedeste quanto sono bravi. :clap:  :clap:

L'ho adattato alla mia risoluzione: 1280x800
...ovviamente dovete inserire il codice relativo alla vostra località che per La Spezia corrisponde a LIQW.
Il codice lo trovate qui:basta prelevare le ultime lettere che trovate in alto nella barra degli indirizzi una volta selezionata la vostra località.
http://weather.noaa.gov/
questo il conkyrc
# conky configuration
#
# The list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.
#
# For ideas about how to modify conky, please see:
# http://crunchbanglinux.org/forums/topic/59/my-conky-config/
#
# For help with conky, please see:
# http://crunchbanglinux.org/forums/topic/2047/conky-help/
#
# Enjoy! :)
##############################################
# Settings
##############################################
background no
use_xft yes
xftfont Liberation Sans:size=9
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
##############################################
# Compositing tips:
# Conky can play strangely when used with
# different compositors. I have found the
# following to work well, but your mileage
# may vary. Comment/uncomment to suit.
##############################################
## no compositor
own_window_type normal
own_window_argb_visual no

## xcompmgr
#own_window_type normal
#own_window_argb_visual yes

## cairo-compmgr
#own_window_type desktop
#own_window_argb_visual yes
##############################################
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 1200 1100
maximum_width 1400
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color 1a1a1a
default_shade_color 000000
default_outline_color 828282
alignment top_right
gap_x 35
gap_y 15
short_units yes
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
##############################################
#  Output
##############################################
TEXT
${font URW Gothic L:size=80}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ LIQW temperature}°C${font URW Gothic L:size=80}$alignr${time %H:%M}${font}
${hr}
${font URW Gothic L:size=11}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ LIQW pressure} hPa  |  ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ LIQW humidity}%  |  ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ LIQW wind_speed} km/h (${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ LIQW wind_dir})${alignr}${time %A, %d %B %Y}

daniodo

Citazione di: ken il Mercoledì 14 Dicembre 2011, 11:42:04
Questo è un conky "rubato" dal forum di Crunchbang, vedeste quanto sono bravi.

Link, please  ;D

Ritornando al conky che hai installato, senza offesa.... lo trovo un pò troppo scarno e minimalista per i miei gusti. Non che mi piacciano le pacchianate: i desktop troppo affollati divengono inevitabilmente illeggibili.
Personalmente, qualche info in più l'avrei messa tipo.... mi vengono in mente le previsioni meteo o qualcosa di simile, piuttosto che un indicatore della musica che si sta ascoltando, tipo qualche info sul monitoraggio del proprio hardware (batteria, spazio dischi, ecc,).

ps: è un pò che non mi cimento col conky.... forse forse.....
La causa della maggior parte dei problemi di un computer si trova tra la tastiera e lo schienale della sedia.
Gnomint su Aspire TimelineX 4820TG-I5-Ati Mobility Radeon HD5470 512Mb / Mint10 Gnome 64 bit su Aspire 6930G-Core 2 Duo T9400-NVidia GeForce 9600M GT 512Mb

ken

Citazione di: daniodo il Mercoledì 14 Dicembre 2011, 21:19:34
Citazione di: ken il Mercoledì 14 Dicembre 2011, 11:42:04
Questo è un conky "rubato" dal forum di Crunchbang, vedeste quanto sono bravi.

Link, please  ;D

http://crunchbanglinux.org/forums/post/170767/#p170767

dai daniodo cimentati e vediamo che riusciamo a tirare fuori  ;)

ken

L' ho modificato  ;D



# conky configuration
#
# The list of variables has been removed from this file in favour
# of keeping the documentation more maintainable.
# Check http://conky.sf.net for an up-to-date-list.
#
# For ideas about how to modify conky, please see:
# http://crunchbanglinux.org/forums/topic/59/my-conky-config/
#
# For help with conky, please see:
# http://crunchbanglinux.org/forums/topic/2047/conky-help/
#
# Enjoy! :)
##############################################
# Settings
##############################################
background no
use_xft yes
xftfont Liberation Sans:size=9
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
##############################################
# Compositing tips:
# Conky can play strangely when used with
# different compositors. I have found the
# following to work well, but your mileage
# may vary. Comment/uncomment to suit.
##############################################
## no compositor
own_window_type normal
own_window_argb_visual no

## xcompmgr
#own_window_type normal
#own_window_argb_visual yes

## cairo-compmgr
#own_window_type desktop
#own_window_argb_visual yes
##############################################
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 1200 1100
maximum_width 1400
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
default_color 1a1a1a
default_shade_color 000000
default_outline_color 828282
alignment top_right
gap_x 35
gap_y 15
short_units yes
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
##############################################
#  Output
##############################################
TEXT
${font URW Gothic L:size=80}${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ LIQW temperature}°C${font URW Gothic L:size=80}$alignr${time %H:%M}${font}
${hr}
${font URW Gothic L:size=11}Pressione ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ LIQW pressure} hPa  |  ${font URW Gothic L:size=11}Umidità ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ LIQW humidity}%  |  ${font URW Gothic L:size=11}Vento ${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ LIQW wind_speed} km/h (${weather http://weather.noaa.gov/pub/data/observations/metar/stations/ LIQW wind_dir})${alignr}La Spezia   ${alignr}${time %A, %d %B %Y}




















${alignr}RAM: $mem / $memmax
$alignr${membar 4,300}

${alignr}/: ${fs_used /} / ${fs_size /}
${alignr}${fs_bar 4,300 /}

${alignr}/home: ${fs_used /home} / ${fs_size /home}
${alignr}${fs_bar 4,300 /home}















dieguitus


Mintico


daniodo

La causa della maggior parte dei problemi di un computer si trova tra la tastiera e lo schienale della sedia.
Gnomint su Aspire TimelineX 4820TG-I5-Ati Mobility Radeon HD5470 512Mb / Mint10 Gnome 64 bit su Aspire 6930G-Core 2 Duo T9400-NVidia GeForce 9600M GT 512Mb


daniodo

Citazione di: ken il Mercoledì 14 Dicembre 2011, 22:11:53
dai daniodo cimentati e vediamo che riusciamo a tirare fuori  ;)

Visto che mi avete chiamato in causa  ;D



# — SETTINGS — #
background no
update_interval 1
cpu_avg_samples 2
net_avg_samples 2
double_buffer yes
no_buffers yes
text_buffer_size 1024
imlib_cache_size 0

# — WINDOW — #
own_window_class Conky
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# — BORDER — #
border_inner_margin 1
border_outer_margin 1

# — SIZE — #
minimum_size 420
maximum_width 565

# — ALIGNMENT — #
alignment tl
gap_x 400
gap_y 30

# — GRAPHIC — #
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no
default_shade_color 252525

# — TEXT — #
use_xft yes
xftfont Dejavu Sans Mono:size=9
xftalpha 1.0
uppercase no
override_utf8_locale yes
default_color 909090

TEXT
$hr
${execpi 5000 /home/daniodo/.horiz_cal.sh}
#
#${execpi 120 fortune}




# conky configuration
background no

# — TEXT — #
use_xft yes
xftfont ZeKton:size=10:style=bold
xftalpha 0.8
uppercase no
override_utf8_locale yes
default_color 707070

update_interval 1
total_run_times 0

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 300 330
maximum_width 300

draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
stippled_borders 8
border_inner_margin 4
border_width 1

# own window options
own_window_class Conky
own_window yes
own_window_transparent yes
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_x 10    ### left &right
gap_y 365    ### up & down

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

cpu_avg_samples 2
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

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white
color1 A9A9A9

text_buffer_size 2048 # larger templates will require this value to increase.

TEXT
${color 729FCF}${font ZeKton:size=13:style=bold}Sistema ${voffset 5}$hr
${voffset -8}${color white}${GOTO 10}${font}Computer${GOTO 65}${color1}:${GOTO 75}${font ZeKton:size=10:style=italic}${nodename}${GOTO 200}${font}${color white}CPU ${font ZeKton:size=10:style=italic}  ${if_match ${cpu cpu0}<=10}${color1}${cpu cpu0}%${endif}${if_match ${cpu cpu0}>=11}${if_match ${cpu cpu0}<=20}${color d4fffc} ${cpu cpu0}%${endif}${endif}${if_match ${cpu cpu0}>=21}${if_match ${cpu cpu0}<=30}${color 72f0ff} ${cpu cpu0}%${endif}${endif}${if_match ${cpu cpu0}>=31}${if_match ${cpu cpu0}<=40}${color 78ffda} ${cpu cpu0}%${endif}${endif}${if_match ${cpu cpu0}>=41}${if_match ${cpu cpu0}<=50}${color 6cff92} ${cpu cpu0}%${endif}${endif}${if_match ${cpu cpu0}>=51}${if_match ${cpu cpu0}<=60}${color d6f681} ${cpu cpu0}%${endif}${endif}${if_match ${cpu cpu0}>=61}${if_match ${cpu cpu0}<=70}${color feff90} ${cpu cpu0}%${endif}${endif}${if_match ${cpu cpu0}>=71}${if_match ${cpu cpu0}<=80}${color ffdd3c} ${cpu cpu0}%${endif}${endif}${if_match ${cpu cpu0}>=81}${if_match ${cpu cpu0}<=89}${color e58f20} ${cpu cpu0}%${endif}${endif} ${if_match ${cpu cpu0}>=90}${color d51717}${cpu cpu0}%${endif}
${color white}${GOTO 10}${font}Kernel${GOTO 65}${color1}:${GOTO 75}${font ZeKton:size=10:style=italic}${sysname}   ${kernel}
${color white}${GOTO 10}${font}Uptime${GOTO 65}${color1}:${GOTO 75}${font ZeKton:size=10:style=italic}${uptime}
${image ~/conky/pix/battery_1.png -p 2,64 -s 25x25}${color white}${GOTO 40}${font}Batteria${GOTO 85}${color1}:${GOTO 90}${font ZeKton:size=10:style=italic}${battery_percent BAT1}%   -   ${battery_time BAT1}   -    ${acpiacadapter}${GOTO 230}${battery_bar BAT1}
${image ~/conky/pix/memory1.png -p 2,80 -s 25x25}${color white}${GOTO 40}${font}RAM ${color1}${font ZeKton:size=10:style=italic}( ${memperc}%  -  $mem Usati)  $membar
${image ~/conky/pix/HD.png -p 2,92 -s 25x25}${color white}${GOTO 40}${font}Root ${color1}${font ZeKton:size=10:style=italic}( ${fs_used_perc /}% - ${fs_free /} Liberi)  ${fs_bar /}
${image ~/conky/pix/HD.png -p 2,108 -s 25x25}${color white}${GOTO 40}${font}Home ${color1}${font ZeKton:size=10:style=italic}( ${fs_used_perc /home}% - ${fs_free /home} Liberi)  ${fs_bar /home}

${color 729FCF}${font ZeKton:size=13:style=bold}Rete ${voffset 5}$hr
${voffset -8}${image ~/conky/pix/Wifi.jpg -p 2,170 -s 20x14}${color white}${GOTO 40}${font}${execpi 2 iwconfig wlan0 | line 1 | cut -c34-46}${GOTO 160}Segnale al  ${execpi 2 cat /sys/class/net/wlan0/wireless/link}%
${GOTO 10}IP Locale:${font ZeKton:size=10:style=italic}${color1} ${addr wlan0}${GOTO 160}${color white}${font}IP Pubblico:${font ZeKton:size=10:style=italic}${color1} ${execi 10 wget -O - -q icanhazip.com}
${image ~/conky/pix/Up.png -p 2,200 -s 18x18}${color white}${GOTO 40}${font}Upload : ${font ZeKton:size=10:style=italic}${color1}${upspeedf wlan0} Kb/s
${image ~/conky/pix/Down.png -p 2,215 -s 18x18}${color white}${GOTO 40}${font}Download : ${font ZeKton:size=10:style=italic}${color1}${downspeedf wlan0} Kb/s
#${GOTO 10}${upspeedgraph wlan0 13,80 ecedee 495056 -t}${GOTO 90}${downspeedgraph wlan0 13,80 ecedee 495056 -t}
${voffset 7}${GOTO 40}${font}${color white}${execi 60 conkyEmail --servertype=IMAP --servername=imap.gmail.com --username=XXXXXXXXXXXX@gmail.com --password=XXXXXXXXX --ssl}${color1} e-mail da leggere
${image ~/conky/pix/email_icon.png -p 2,235 -s 20x20}




# conky configuration
background no

# — TEXT — #
use_xft yes
xftfont ZeKton:size=10:style=bold
xftalpha 0.8
uppercase no
override_utf8_locale yes
default_color 707070

update_interval 1
total_run_times 0

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 300 330
maximum_width 300

draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
stippled_borders 8
border_inner_margin 4
border_width 1

# own window options
own_window_class Conky
own_window yes
#own_window_type override
#own_window_type conky
own_window_transparent yes
#own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
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_x 10    ### left &right
gap_y 30    ### up & down

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

cpu_avg_samples 2
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

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white

text_buffer_size 2048 # larger templates will require this value to increase.

TEXT
${execpi 1800 conkyForecast --location=ITXX0089 --template=/home/daniodo/scripts/daniodo.template}


il template per il meteo è questo

${color #729FCF}${font ZeKton:size=13:style=bold}Meteo [--datatype=CN]  ${voffset 5}$hr
${voffset -5}${color white}${font ZeKton:size=12:style=bold}[--datatype=CT]
${voffset -2}${font ZeKton:size=10}[--datatype=BR], [--datatype=BD]
Visibilità: [--datatype=VI]
Irradiaz.: [--datatype=UI] / [--datatype=UT]
Umidità: [--datatype=HM]
${voffset 5}${font ZeKton:size=10}${goto 50}Fase lunare:${goto 160}Alba: [--datatype=SR]
${goto 50}[--datatype=MP]${goto 160}Tramonto: [--datatype=SS]${goto 260}${voffset -6}${font ZeKton:size=14:style=bold}[--datatype=HT]
${voffset -6}${color #729FCF}${hr}
${voffset -10}${color yellow}${font ZeKton:size=11:style=bold}[--datatype=DW --startday=1]${goto 160}[--datatype=DW --startday=2]
${color white}${font ZeKton:size=10}[--datatype=HT --startday=1] / [--datatype=LT --startday=1]${goto 160}[--datatype=HT --startday=2] / [--datatype=LT --startday=2]
[--datatype=WS --startday=1]${goto 160}[--datatype=WS --startday=2]
[--datatype=CT --startday=1]${goto 160}[--datatype=CT --startday=2]
${color #729FCF}${hr}
${color yellow}${font ZeKton:size=11:style=bold}[--datatype=DW --startday=3]${goto 160}[--datatype=DW --startday=4]
${color white}${font ZeKton:size=10}[--datatype=HT --startday=3] / [--datatype=LT --startday=3]${goto 160}[--datatype=HT --startday=4] / [--datatype=LT --startday=4]
[--datatype=WS --startday=3]${goto 160}[--datatype=WS --startday=4]
[--datatype=CT --startday=3]${goto 160}[--datatype=CT --startday=4]
${color #729FCF}${hr}
${font ZeKton:size=11:style=italic}${alignc}Aggiornamento del [--datatype=LU]
${image [--datatype=WI] -p 180,5 -s 100x100}
${image [--datatype=MI] -p 0,105 -s 35x35}
${image [--datatype=WI --startday=1] -p 75,150 -s 60x60}
${image [--datatype=WI --startday=2] -p 240,150 -s 60x60}
${image [--datatype=WI --startday=3] -p 75,230 -s 60x60}
${image [--datatype=WI --startday=4] -p 240,230 -s 60x60}


Un'immagine d'insieme potete visionarla cliccando qui
La causa della maggior parte dei problemi di un computer si trova tra la tastiera e lo schienale della sedia.
Gnomint su Aspire TimelineX 4820TG-I5-Ati Mobility Radeon HD5470 512Mb / Mint10 Gnome 64 bit su Aspire 6930G-Core 2 Duo T9400-NVidia GeForce 9600M GT 512Mb

ken

E bravo daniodo   :entu:  :clap: :clap:
....io in confronto sono un dilettante  :)
ma riesci a fornire anche le immagini ed il font usati? Thanks  ;)

daniodo

Per quanto riguarda batteria, email, ram e gli hard disk eccoli qui sotto....
La causa della maggior parte dei problemi di un computer si trova tra la tastiera e lo schienale della sedia.
Gnomint su Aspire TimelineX 4820TG-I5-Ati Mobility Radeon HD5470 512Mb / Mint10 Gnome 64 bit su Aspire 6930G-Core 2 Duo T9400-NVidia GeForce 9600M GT 512Mb

daniodo

Qui invece l'icona del wifi, up, down ed il font utilizzato  :ciao:
La causa della maggior parte dei problemi di un computer si trova tra la tastiera e lo schienale della sedia.
Gnomint su Aspire TimelineX 4820TG-I5-Ati Mobility Radeon HD5470 512Mb / Mint10 Gnome 64 bit su Aspire 6930G-Core 2 Duo T9400-NVidia GeForce 9600M GT 512Mb

Mintico

Complimentoni!!!! :ok: :clap:

ken


daniodo

Dato che mi è stato chiesto anche nella sezione dei desktop, mi sembra opportuno riportarlo anche qui.
Si tratta del sistema di visualizzazione del calendario, del come si possa visualizzarlo su una riga.
Il conky dedicato che è riportato sopra, si avvale del file bash che riporto qui sotto:

#!/bin/bash
# horizontal calendar for conky by ans
# Updated by: mobilediesel, dk75, Bruce, Crinos512, et al.
# locale depend week day names
lang=$1
case ${lang:=$LANG} in
       
        it*  ) Sun="Do";   Mon="Lu";   Tue="Ma";   Wed="Me";   Thu="Gi";   Fri="Ve";   Sat="Sa" ;;   # Italian (Italiano)
       
esac

COLOROLD="a0a0a0" #MidSlateGrey
COLORTODAY="red" #Darkorange
COLORREST="a0a0a0" #MidSlateGrey
COLORNEXT="c0c0c0" #LightSlateGrey

TODAY=$(date +%d)
LASTDAY=$(date -d "-$TODAY days +1 month" +%d)
FIRSTDAY=$(date -d "-$[${TODAY/#0/}-1] days" +%u)
TODAYC="\${color $COLORTODAY} $TODAY\${color}"

# Build $TOPLINE
j=31
k=$FIRSTDAY
while [ $j -gt 0 ]; do
  case "$k" in
    1) TOPLINE="$TOPLINE $Mon";;
    2) TOPLINE="$TOPLINE $Tue";;
    3) TOPLINE="$TOPLINE $Wed";;
    4) TOPLINE="$TOPLINE $Thu";;
    5) TOPLINE="$TOPLINE $Fri";;
    6) TOPLINE="$TOPLINE \${color white}$Sat\${color}";;
    7) TOPLINE="$TOPLINE \${color white}$Sun\${color}"
       k=0
       ;;
  esac
  j=$[$j-1]
  k=$[$k+1]
done

# Build $OVER
i=1
OVER="\${color $COLOROLD}"
while [ $i -lt $TODAY ]; do
  case $i in
    [1-9])   OVER="$OVER 0$i" ;;
    *)       OVER="$OVER $i"  ;;
  esac
  i=$[$i+1]
done
OVER="$OVER\${color}"

# skip i where value of i=$TODAY
i=$[$i+1]

# Build $REST
REST="\${color $COLORREST}"
while [ $i -le $LASTDAY ]; do
  case $i in
    [1-9])   REST="$REST 0$i" ;;
    *)       REST="$REST $i"  ;;
  esac
  i=$[$i+1]
done
REST="$REST\${color}"

# Build $NEXTMONTH
i=$LASTDAY
j=1
NEXTMONTH=""
if [ $i -ne 31 ] ; then
  NEXTMONTH="\${color $COLORNEXT}"
  while [ $i -lt 31 ] ; do
     NEXTMONTH="$NEXTMONTH 0$j"
     i=$[$i+1]
     j=$[$j+1]
  done
  NEXTMONTH="$NEXTMONTH\${color}"
fi


echo "$OVER$TODAYC$REST$NEXTMONTH\${tab 20}"
echo "$TOPLINE\${tab 20}"
La causa della maggior parte dei problemi di un computer si trova tra la tastiera e lo schienale della sedia.
Gnomint su Aspire TimelineX 4820TG-I5-Ati Mobility Radeon HD5470 512Mb / Mint10 Gnome 64 bit su Aspire 6930G-Core 2 Duo T9400-NVidia GeForce 9600M GT 512Mb