Non ricordo più il tuo desktop xDFrankie90 ha scritto:Idem, nessuno si ricorda più del frankieleopesto ha scritto: nessuno commenta il mio?![]()
![]()
Nemmeno il mio è stato commentato, a parte da burt

Non ricordo più il tuo desktop xDFrankie90 ha scritto:Idem, nessuno si ricorda più del frankieleopesto ha scritto: nessuno commenta il mio?![]()
![]()

bello il conky a serpente volevo farlo pure io , ma troppo lavoro

la nuova tray e fichissima, le nuove folder mmmm non mi convincono, ottime tutte le icone di navigazione sulla sinistra di dolphin , mi piacerebbe avere un tema gtk o un set con quelle icone, ma finche qualcuno non fa un porting , niente da fare .
Codice: Seleziona tutto
--[[Conky Widgets by londonali1010 (2009)
This script is meant to be a "shell" to hold a suite of widgets for use in Conky.
To configure:
+ Copy the widget's code block (will be framed by --(( WIDGET NAME )) and --(( END WIDGET NAME )), with "[" instead of "(") somewhere between "require 'cairo'" and "function conky_widgets()", ensuring not to paste into another widget's code block
+ To call the widget, add the following just before the last "end" of the entire script:
cr = cairo_create(cs)
NAME_OF_FUNCTION(cr, OPTIONS)
cairo_destroy(cr)
+ Replace OPTIONS with the options for your widget (should be specified in the widget's code block)
Call this script in Conky using the following before TEXT (assuming you save this script to ~/scripts/conky_widgets.lua):
lua_load ~/scripts/conky_widgets.lua
lua_draw_hook_pre widgets
Changelog:
+ v1.0 -- Original release (17.10.2009)
]]
require 'cairo'
--[[ RING WIDGET ]]
--[[ Options (name, arg, max, bg_colour, bg_alpha, xc, yc, radius, thickness, start_angle, end_angle):
"name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
"arg" is the argument to the stat type, e.g. if in Conky you would write ${cpu cpu0}, 'cpu0' would be the argument. If you would not use an argument in the Conky variable, use ''.
"max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
"bg_colour" is the colour of the base ring.
"bg_alpha" is the alpha value of the base ring.
"fg_colour" is the colour of the indicator part of the ring.
"fg_alpha" is the alpha value of the indicator part of the ring.
"x" and "y" are the x and y coordinates of the centre of the ring, relative to the top left corner of the Conky window.
"radius" is the radius of the ring.
"thickness" is the thickness of the ring, centred around the radius.
"start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
"end_angle" is the ending angle of the ring, in degrees, clockwise from top. Value can be either positive or negative, but must be larger (e.g. more clockwise) than start_angle. ]]
function ring(cr, name, arg, max, bgc, bga, fgc, fga, xc, yc, r, t, sa, ea)
local function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
local function draw_ring(pct)
local angle_0=sa*(2*math.pi/360)-math.pi/2
local angle_f=ea*(2*math.pi/360)-math.pi/2
local pct_arc=pct*(angle_f-angle_0)
-- Draw background ring
cairo_arc(cr,xc,yc,r,angle_0,angle_f)
cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
cairo_set_line_width(cr,t)
cairo_stroke(cr)
-- Draw indicator ring
cairo_arc(cr,xc,yc,r,angle_0,angle_0+pct_arc)
cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
cairo_stroke(cr)
end
local function setup_ring()
local str = ''
local value = 0
str = string.format('${%s %s}', name, arg)
str = conky_parse(str)
value = tonumber(str)
if value == nil then value = 0 end
pct = value/max
draw_ring(pct)
end
local updates=conky_parse('${updates}')
update_num=tonumber(updates)
if update_num>5 then setup_ring() end
end
--[[ END RING WIDGET ]]
function conky_widgets()
if conky_window == nil then return end
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
cr = cairo_create(cs)
cairo_destroy(cr)
cr = cairo_create(cs)
ring(cr, 'cpu', 'CPU0', 100, 0xFFFFFF, 0.2, 0xFFFFFF, 0.8, 920, 200, 50, 10, 0, 180) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
cairo_destroy(cr)
cr = cairo_create(cs)
ring(cr, 'memperc', '', 100, 0xFFFFFF, 0.2, 0xFFFFFF, 0.8, 920, 300, 50, 10, 180, 360) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
cairo_destroy(cr)
cr = cairo_create(cs)
ring(cr, 'fs_used_perc', '/', 100, 0xFFFFFF, 0.2, 0xFFFFFF, 0.8, 920, 400, 50, 10, 0, 180) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
cairo_destroy(cr)
cr = cairo_create(cs)
ring(cr, 'battery_percent', 'BAT1', 100, 0xFFFFFF, 0.2, 0xFFFFFF, 0.8, 920, 500, 50, 10, 180, 360) -- options: name, arg, max, bg_colour, bg_alpha, fg_colour, fg_alpha, xc, yc, radius, thickness, start_angle, end_angle
cairo_destroy(cr)
endburt ha scritto:la nuova tray e fichissima, le nuove folder mmmm non mi convincono, ottime tutte le icone di navigazione sulla sinistra di dolphin , mi piacerebbe avere un tema gtk o un set con quelle icone, ma finche qualcuno non fa un porting , niente da fare .
Tutto dipende da come l'hai rimosso.SuNjACk ha scritto:Adesso me lo dici, io ho vissuto per un anno che quiet e usplash aumentassero il tempo di boot xDshouldes ha scritto:Deve essere lasciato.SuNjACk ha scritto:non ho capito, quiet deve essere aggiunto o rimosso per velocizzare il boot?shouldes ha scritto:Mi sono accorto che con quiet, invece della modalità verbose, è più veloce anche il boot.shouldes ha scritto:Si è Karmic, infatti il tempo di avvio da grub (quando premo invio) a login ci mette parecchio, da -1:05 a -0:41, quindi 24 secondi.bird92 ha scritto:È karmic?shouldes ha scritto: Senza xplash niente attese.
Però il passaggio da login a desktop è istantaneo levando xsplash.
L'usplash non influisce nella velocità di avvio, però l'opzione quiet si, velocizza di molto.
Io l'avevo rimosso, il tempo aumenta rimuovendolo.
Usplash non influisce neppure di un secondo invece.
Ho rimesso l'usplash Debian Edu.
Ade come rimetto usplash?

sudo apt-get remove --purge usplashshouldes ha scritto:Tutto dipende da come l'hai rimosso.SuNjACk ha scritto:Adesso me lo dici, io ho vissuto per un anno che quiet e usplash aumentassero il tempo di boot xDshouldes ha scritto:Deve essere lasciato.SuNjACk ha scritto:non ho capito, quiet deve essere aggiunto o rimosso per velocizzare il boot?shouldes ha scritto:Mi sono accorto che con quiet, invece della modalità verbose, è più veloce anche il boot.shouldes ha scritto:Si è Karmic, infatti il tempo di avvio da grub (quando premo invio) a login ci mette parecchio, da -1:05 a -0:41, quindi 24 secondi.bird92 ha scritto:È karmic?shouldes ha scritto: Senza xplash niente attese.
Però il passaggio da login a desktop è istantaneo levando xsplash.
L'usplash non influisce nella velocità di avvio, però l'opzione quiet si, velocizza di molto.
Io l'avevo rimosso, il tempo aumenta rimuovendolo.
Usplash non influisce neppure di un secondo invece.
Ho rimesso l'usplash Debian Edu.
Ade come rimetto usplash?


Mi piace

A che serve -- sudo usplash -c --shouldes ha scritto: sudo apt-get install usplash usplash-theme-ubuntu libusplash0
sudo update-grub
sudo update-initramfs -u
Si dovrebbe ripristinare quello default in automatico.
sudo usplash -c per tornare ctrl+alt+f7

Cos'è conky quello che hai in alto col titolo, copertina e avanzamento dell'album in riproduzione? Passeresti mica il codice?

Io sono su jaunty, come dovrei fareshouldes ha scritto: Ormai che ci sei, metterei sabily o debian edu, sono nei repository, sono più gradevoli di quello default.
Si imposta tutto in automatico, basta installare il tema che vuoi invece di quello di ubuntu.
Automaticamente usa l'alternativa, non è più come su jaunty.
Con jaunty funzionano quasi tutti gli usplash di gnome-look.SuNjACk ha scritto:Io sono su jaunty, come dovrei fareshouldes ha scritto: Ormai che ci sei, metterei sabily o debian edu, sono nei repository, sono più gradevoli di quello default.
Si imposta tutto in automatico, basta installare il tema che vuoi invece di quello di ubuntu.
Automaticamente usa l'alternativa, non è più come su jaunty.

Grazie! Ti offro una birra (b2b)shouldes ha scritto:Con jaunty funzionano quasi tutti gli usplash di gnome-look.SuNjACk ha scritto:Io sono su jaunty, come dovrei fareshouldes ha scritto: Ormai che ci sei, metterei sabily o debian edu, sono nei repository, sono più gradevoli di quello default.
Si imposta tutto in automatico, basta installare il tema che vuoi invece di quello di ubuntu.
Automaticamente usa l'alternativa, non è più come su jaunty.
http://wiki.ubuntu-it.org/BootSplash?highlight=%28splash%29
(b2b)SuNjACk ha scritto:Grazie! Ti offro una birra (b2b)shouldes ha scritto:Con jaunty funzionano quasi tutti gli usplash di gnome-look.SuNjACk ha scritto:Io sono su jaunty, come dovrei fareshouldes ha scritto: Ormai che ci sei, metterei sabily o debian edu, sono nei repository, sono più gradevoli di quello default.
Si imposta tutto in automatico, basta installare il tema che vuoi invece di quello di ubuntu.
Automaticamente usa l'alternativa, non è più come su jaunty.
http://wiki.ubuntu-it.org/BootSplash?highlight=%28splash%29

Si, eccolo
Codice: Seleziona tutto
use_xft yes
xftfont Liberation Sans:size=8
override_utf8_locale yes
text_buffer_size 2048
update_interval 1
total_run_times 0
double_buffer yes
no_buffers yes
net_avg_samples 1
cpu_avg_samples 1
own_window_class Conky
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
default_color cccccc
draw_shades no
color0 white
color1 E07A1F
color2 white
alignment top_right
gap_x 25
gap_y 40
minimum_size 182 0
maximum_width 182
imlib_cache_size 0
TEXT
${if_running rhythmbox}${voffset 0}${offset 55}${color #8c8c8c}In esecuzione:
${offset 55}${font Sans:size=7}Artist: ${exec /usr/bin/rhythmbox-client --no-start --no-present --print-playing-format %ta|cut -b -99}
${offset 55}${font Sans:size=7}Title: ${exec /usr/bin/rhythmbox-client --no-start --no-present --print-playing-format %tt|cut -b -99}
${voffset 0}${exec cp "`conkyRhythmbox --datatype=CA | sed -e 's/\\\//g'`" /home/soprano/.album.jpg}${image /home/soprano/.album.jpg -s 48x48}
${voffset -12}${offset 55}${font Sans:size=7}Time: ${alignr}${exec conkyRhythmbox -n --datatype=PT} / ${exec conkyRhythmbox -n --datatype=LE}
${offset 55}${execibar 1 conkyRhythmbox --datatype=PP}
${else}
${font Sans:size=9}"Rhythmbox Closed"
$endifCodice: Seleziona tutto
#!/bin/bash
artist=`rhythmbox-client --print-playing-format %ta`
album=`rhythmbox-client --print-playing-format %aa`
str="`echo "$artist $album" | sed -e s/\\ /+/g`"
wget `wget "http://www.albumart.org/index.php?srchkey=$str&itempage=1&newsearch=1&searchindex=Music" -q -O - |
grep "http://www.albumart.org/images/zoom-icon.jpg" -m 1 |
sed -e 's/" border="0" class="image_border.*//' |
sed -e 's/.*img src="//'` -q -O /home/soprano/.album.jpgveramente bello,buba ha scritto: nuovo lavoretto work in progress
che ve ne pare ? consigli e migliorie? gradite critiche e suggerimenti grazie come sempre a tutti
the bubs
Visualizzano questa sezione: 0 utenti iscritti e 6 ospiti