Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#351 Le 30/11/2010, à 13:32

zb1000

Re : A quoi ressemble votre environnement - automne/hiver 2010/2011

Mon mien en ce moment :

capture2f.th.png

Hors ligne

#352 Le 30/11/2010, à 16:18

Federom

Re : A quoi ressemble votre environnement - automne/hiver 2010/2011

Welloum a écrit :

Salut tout le monde !!

@cbrunos : C'est quoi ton éditeur TeX stp ?

@Federom : Très joli, on peut avoir des détails stp ? (conky, wallpaper... tineye ne retourne rien en vert... sad)

Merci à vous deux !

Merci pour le compliment, en grande partie je n'ai fait que réutiliser des trucs piqués ici et adaptés à ma façon ! smile

Le wallpaper c'est ici que je l'ai trouvé : http://wallbase.net/wallpaper/826038
Le dock c'est AWN avec des icônes Faenza + Faenza Mint : http://gnome-look.org/content/show.php/ … ent=132681
Le thème c'est mint-x-theme
Le conky avec l'heure c'est :

# Default Fonts
use_xft yes
xftfont DejaVu Sans:size=9
override_utf8_locale yes

# Performance Settings
update_interval 1
total_run_times 0
double_buffer yes
no_buffers yes
net_avg_samples 2
text_buffer_size 1024

# Window Settings
own_window yes
own_window_transparent yes
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Window border
draw_borders no
draw_shades no

# Default Color
default_color 0B4606

# Size and position
minimum_size 400 270
gap_x 50
gap_y 150
alignment top_left

# -- Lua Load -- #
lua_load ~/.conky/.time.lua
lua_draw_hook_pre ring_stats
TEXT
${voffset 35}${font URW Gothic L:size=50}${alignr}${time %H.%M}${font}
${goto 166}${hr 2}
${alignr}${time %A %d %B %Y}

avec le script lua qui va bien, placé dans le même dossier .conky :

--[[
Ring Meters by londonali1010 (2009)

This script draws percentage meters as rings. It is fully customisable; all options are described in the script.

IMPORTANT: if you are using the 'cpu' function, it will cause a segmentation fault if it tries to draw a ring straight away. The if statement on line 145 uses a delay to make sure that this doesn't happen. It calculates the length of the delay by the number of updates since Conky started. Generally, a value of 5s is long enough, so if you update Conky every 1s, use update_num>5 in that if statement (the default). If you only update Conky every 2s, you should change it to update_num>3; conversely if you update Conky every 0.5s, you should use update_num>10. ALSO, if you change your Conky, is it best to use "killall conky; conky" to update it, otherwise the update_num will not be reset and you will get an error.

To call this script in Conky, use the following (assuming that you save this script to ~/scripts/rings.lua):
    lua_load ~/scripts/rings-v1.2.lua
    lua_draw_hook_pre ring_stats
    
Changelog:
+ v1.2 -- Added option for the ending angle of the rings (07.10.2009)
+ v1.1 -- Added options for the starting angle of the rings, and added the "max" variable, to allow for variables that output a numerical value rather than a percentage (29.09.2009)
+ v1.0 -- Original release (28.09.2009)
]]

settings_table = {
--[[ heure ]]
    {
        -- Edit this table to customise your rings.
        -- You can create more rings simply by adding more elements to settings_table.
        -- "name" is the type of stat to display; you can choose from 'cpu', 'memperc', 'fs_used_perc', 'battery_used_perc'.
        name='time',
        -- "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 ''.
        arg='%I.%M',
        -- "max" is the maximum value of the ring. If the Conky variable outputs a percentage, use 100.
        max=12,
        -- "bg_colour" is the colour of the base ring.
        bg_colour=0x000000,
        -- "bg_alpha" is the alpha value of the base ring.
        bg_alpha=0.1,
        -- "fg_colour" is the colour of the indicator part of the ring.
        fg_colour=0x053300,
        -- "fg_alpha" is the alpha value of the indicator part of the ring.
        fg_alpha=0.5,
        -- "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.
        x=148, y=118,
        -- "radius" is the radius of the ring.
        radius=50,
        -- "thickness" is the thickness of the ring, centred around the radius.
        thickness=7,
        -- "start_angle" is the starting angle of the ring, in degrees, clockwise from top. Value can be either positive or negative.
        start_angle=90,
        -- "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.
        end_angle=450
    },
--[ minutes ]
  {
        name='time',
        arg='%M.%S',
        max=60,
        bg_colour=0x000000,
        bg_alpha=0.1,
        fg_colour=0x0B8700,
        fg_alpha=0.5,
        x=148, y=118,
        radius=42,
        thickness=8,
        start_angle=90,
        end_angle=450
    },

-- [ secondes ]
    {
        name='time',
        arg='%S',
        max=60,
        bg_colour=0x000000,
        bg_alpha=0,
        fg_colour=0x0A7600,
        fg_alpha=0.4,
        x=148, y=118,
        radius=27,
        thickness=17,
        start_angle=90,
        end_angle=450
    },
--[ jour ]
   {
        name='time',
        arg='%d',
        max=31,
        bg_colour=0x000000,
        bg_alpha=0.1,
        fg_colour=0x0F6108,
        fg_alpha=0.6,
        x=148, y=118,
        radius=60,
        thickness=5,
        start_angle=90,
        end_angle=450
    },

--[ mois ]

    {
        name='time',
        arg='%m',
        max=12,
        bg_colour=0x000000,
        bg_alpha=0.1,
        fg_colour=0x075400,
        fg_alpha=0.5,
        x=148, y=118,
        radius=66,
        thickness=2,
        start_angle=90,
        end_angle=450    },

}


require 'cairo'

function rgb_to_r_g_b(colour,alpha)
    return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end

function draw_ring(cr,t,pt)
    local w,h=conky_window.width,conky_window.height
    
    local xc,yc,ring_r,ring_w,sa,ea=pt['x'],pt['y'],pt['radius'],pt['thickness'],pt['start_angle'],pt['end_angle']
    local bgc, bga, fgc, fga=pt['bg_colour'], pt['bg_alpha'], pt['fg_colour'], pt['fg_alpha']

    local angle_0=sa*(2*math.pi/360)-math.pi/2
    local angle_f=ea*(2*math.pi/360)-math.pi/2
    local t_arc=t*(angle_f-angle_0)

    -- Draw background ring

    cairo_arc(cr,xc,yc,ring_r,angle_0,angle_f)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(bgc,bga))
    cairo_set_line_width(cr,ring_w)
    cairo_stroke(cr)
    
    -- Draw indicator ring

    cairo_arc(cr,xc,yc,ring_r,angle_0,angle_0+t_arc)
    cairo_set_source_rgba(cr,rgb_to_r_g_b(fgc,fga))
    cairo_stroke(cr)        
end

function conky_ring_stats()
    local function setup_rings(cr,pt)
        local str=''
        local value=0
        
        str=string.format('${%s %s}',pt['name'],pt['arg'])
        str=conky_parse(str)
        
        value=tonumber(str)
        pct=value/pt['max']
        
        draw_ring(cr,pct,pt)
    end

    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)
    
    local cr=cairo_create(cs)    
    
    local updates=conky_parse('${updates}')
    update_num=tonumber(updates)
    
    if update_num>5 then
        for i in pairs(settings_table) do
            setup_rings(cr,settings_table[i])
        end
    end
end

L'autre conky, que je pense enrichir un peu d'ailleurs :

# Default Fonts
use_xft yes
xftfont DejaVu Sans:size=9
override_utf8_locale yes

# Performance Settings
update_interval 1
total_run_times 0
double_buffer yes
no_buffers yes
net_avg_samples 2
text_buffer_size 1024

# Window Settings
own_window yes
own_window_transparent yes
own_window_type override
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Window border
draw_borders no
draw_shades no

# Default Color
default_color 0B4606

# Size and position
minimum_size 400 270
gap_x 200
gap_y 100
alignment top_right


TEXT
${goto 230}${font ConkyWeather:size=64}${execi 1800 conkyForecast --location=FRXX0140 --datatype=WF}${font}
${goto 330}${voffset -80}${font URW Gothic L:size=9}${execi 600 conkyForecast --location=FRXX0140 --datatype=CN --refetch}
${goto 330}${voffset -2}${font URW Gothic L :size=25}${execi 1800 conkyForecast --location=FRXX0140 -u
--datatype=HT}${font}
${goto 330}${voffset -1}${font URW Gothic L:size=8}Vent : ${execi 1800 conkyForecast --location=FRXX0140 --datatype=WS }

${voffset 4}${goto 190}${hr 1}

${goto 210}${execi 1800 conkyForecast --location=FRXX0140 --datatype=DW --startday=1 --shortweekday -L fr}${offset 50}${execi 1800 conkyForecast --location=FRXX0140 --datatype=DW --startday=2 --shortweekday -L fr}${offset 50}${execi 1800 conkyForecast --location=FRXX0140 --datatype=DW --startday=3 --shortweekday -L fr}${font}
${goto 200}${font URW Gothic L:size=9}${execi 1800 conkyForecast --location=FRXX0140 --datatype=LT --startday=1 --hideunits --centeredwidth=3 --shortweekday -L fr}/${execi 1800 conkyForecast --location=FRXX0140 --datatype=HT --startday=1 --hideunits --centeredwidth=3 -L fr}${offset 33}${execi 1800 conkyForecast --location=FRXX0140 --datatype=LT --startday=2 --hideunits --centeredwidth=3 --shortweekday -L fr}/${execi 1800 conkyForecast --location=FRXX0140 --datatype=HT --startday=2 --hideunits --centeredwidth=3 -L fr}${offset 33}${execi 1800 conkyForecast --location=FRXX0140 --datatype=LT --startday=3 --hideunits --centeredwidth=3 --shortweekday -L fr}/${execi 1800 conkyForecast --location=FRXX0140 --datatype=HT --startday=3 --hideunits --centeredwidth=3 -L fr}${font}
${goto 205}${font ConkyWeather:size=22}${execi 1800 conkyForecast -L fr --location=FRXX0140 --datatype=WF --startday=1 --endday=3 --spaces=6}${font}
${voffset 4}${goto 190}${hr 1}

${goto 240}${font openlogos:size=15}u${font}${voffset -7}${font URW Gothic L:size=8} ${execi 86400 cat /etc/lsb-release|grep ID|cut -d= -f2} ${execi 86400 cat /etc/lsb-release|grep REL|cut -d= -f2} "${execi 86400 cat /etc/lsb-release|grep NAME|cut -d= -f2}"${font}
${goto 255}${font URW Gothic L:size=8}Kernel : ${exec uname -r | cut -c 1-9}${font}

${goto 210}${font URW Gothic L:size=8}CPU 1 :${font}${GOTO 280}${cpubar cpu1 10,75} ${font URW Gothic L:size=8}${cpu cpu1} %${font}
${goto 210}${font URW Gothic L:size=8}CPU 2 :${font}${GOTO 280}${cpubar cpu2 10,75} ${font URW Gothic L:size=8}${cpu cpu2} %${font}
${goto 210}${font URW Gothic L:size=8}RAM :${font}${GOTO 280}${membar 10,75}${font URW Gothic L:size=8} ${memperc} %${font}
${goto 210}${font URW Gothic L:size=8}Disque dur :${font}${GOTO 280}${fs_bar 10,75 /} ${font URW Gothic L:size=8}${fs_used_perc /} %${font}

${goto 210}${font URW Gothic L:size=8}Qual. wi-fi :${GOTO 280}${wireless_link_bar 10,75 wlan0} ${font URW Gothic L:size=8}${wireless_link_qual_perc wlan0} %${font}
${goto 210}${font URW Gothic L:size=8}Upspeed :${font}${GOTO 280}${upspeedgraph wlan0 10,75 0B4606 0B4606} ${font URW Gothic L:size=8}${upspeedf wlan0} k/s
${goto 210}${font URW Gothic L:size=8}Downspeed :${font}${GOTO 280}${downspeedgraph wlan0 10,75 0B4606 0B4606} ${font URW Gothic L:size=8}${downspeedf wlan0} k/s
${voffset 4}${goto 190}${hr 1}

${goto 250}GMail : ${color 0B4606}${font URW Gothic L:size=8}${execi 300 ~/.conky/conkygmail.sh}

avec le script gmail qui va bien (y mettre ses identifiants et mots de passe à l'endroit concerné), placé lui aussi dans le dossier .conky :

#!/bin/bash

gmail_login="mettre ici le login"  
gmail_password="mettre ici le mot de passe"

nbmail="$(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 "$nbmail" ]; then
echo "Indisponible"
else
echo "$nbmail message(s)"
fi
exit

Voilà je crois que c'est tout !

Hors ligne

#353 Le 03/12/2010, à 11:30

Welloum

Re : A quoi ressemble votre environnement - automne/hiver 2010/2011

Merci beaucoup !!

Voici donc le mien :

capture1te.th.png   capture2af.th.png   capture3e.th.png   capture4d.th.png


Il n'y a que les imbéciles qui ne changent pas d'avis. C'est mon avis. Et je ne vois pas pourquoi j'en changerais.
L'intelligence a été inventée il y a très longtemps par un type vachement malin. La connerie, c'est autre chose, c'est une création collective.
Au fond, est-ce que ranger ça ne revient pas un peu à foutre le bordel dans son désordre ?

Hors ligne

#354 Le 03/12/2010, à 17:44

zb1000

Re : A quoi ressemble votre environnement - automne/hiver 2010/2011

Je continue de teste d'utiliser plusieurs docks, bien gros. Je ne sais pas encore si j'aime ça...
Par contre j'ai trouvé des icones genre aweoken mais bleues et c'est bien agréable

capture7hw.th.png capture5k.th.png capture6q.th.png

Hors ligne

#355 Le 04/12/2010, à 15:21

Federom

Re : A quoi ressemble votre environnement - automne/hiver 2010/2011

Welloum, j'aime beaucoup ! Dis c'est un conky qui affiche tes photos ? On peut savoir comment ? Merci !

zb1000, les docks sont peut-être un peu gros (pour moi), mais les icônes sont très belles, j'aime beaucoup ce mélange bleu-noir !

Hors ligne

#356 Le 04/12/2010, à 19:13

zb1000

Re : A quoi ressemble votre environnement - automne/hiver 2010/2011

Oui je trouve aussi qu'ils sont un peu tros gros, ces docks...

Hors ligne

#357 Le 05/12/2010, à 12:06

Welloum

Re : A quoi ressemble votre environnement - automne/hiver 2010/2011

Federom a écrit :

Welloum, j'aime beaucoup ! Dis c'est un conky qui affiche tes photos ? On peut savoir comment ? Merci !

Oui, c'est bien conky avec un petit script lua : l'auteur en est wlourf et tu peux voir ses exemples sur deviantart ici, ici, ici ou enfin !

Ses scripts sont téléchargeables ici.

Si tu veux plus de détails, je posterai les miens modifiés, mais je voulais souligner le travail de l'auteur cool !


Il n'y a que les imbéciles qui ne changent pas d'avis. C'est mon avis. Et je ne vois pas pourquoi j'en changerais.
L'intelligence a été inventée il y a très longtemps par un type vachement malin. La connerie, c'est autre chose, c'est une création collective.
Au fond, est-ce que ranger ça ne revient pas un peu à foutre le bordel dans son désordre ?

Hors ligne

#358 Le 05/12/2010, à 13:27

Tirr Mohma

Re : A quoi ressemble votre environnement - automne/hiver 2010/2011

Moi en ce moment c'est ça :

1291484650.png


Sous ubuntu depuis la 7.04.

Hors ligne

#359 Le 05/12/2010, à 15:15

L00d0v1c

Re : A quoi ressemble votre environnement - automne/hiver 2010/2011

Je me suis fais un thème noir pour l'hiver. ( redshift ça pique :s )

Mes 3 bureaux :

1291554199.jpg 1291554165.jpg 1291553771.jpg

Pleins :

1291554198.jpg 1291553754.jpg

Mon … cube de bureaux à 3 faces (je ne connais pas le nom de cette figure ^^" ) :

1291553760.jpg

Dernière modification par Fishkilleur (Le 05/12/2010, à 15:15)


Pour votre culture, chargez trois pages de Wikipédia par jour.

Hors ligne

#360 Le 05/12/2010, à 15:33

HP

Re : A quoi ressemble votre environnement - automne/hiver 2010/2011

2010120312913839151680x.th.png 2010120212913115601680x.th.png


cat /dev/urandom >/dev/null 2>&1 #github

Hors ligne

#361 Le 05/12/2010, à 19:52

wlourf

Re : A quoi ressemble votre environnement - automne/hiver 2010/2011

pas de panel sur un écran 12" mais le menu "client-list-combined-menu" d'OpenBox
091e6c33e0791caece193be2eff1at.jpg

Edit : @Welloum merci beaucoup pour la pub ;-)

Dernière modification par wlourf (Le 05/12/2010, à 20:05)

Hors ligne

#362 Le 05/12/2010, à 19:58

Federom

Re : A quoi ressemble votre environnement - automne/hiver 2010/2011

Welloum a écrit :
Federom a écrit :

Welloum, j'aime beaucoup ! Dis c'est un conky qui affiche tes photos ? On peut savoir comment ? Merci !

Oui, c'est bien conky avec un petit script lua : l'auteur en est wlourf et tu peux voir ses exemples sur deviantart ici, ici, ici ou enfin !

Ses scripts sont téléchargeables ici.

Si tu veux plus de détails, je posterai les miens modifiés, mais je voulais souligner le travail de l'auteur cool !

Je veux bien tes scripts, il faut s'inscrire sur le forum pour récupérer les scripts de l'auteur, et j'attends toujours le mail de confirmation d'inscription... Bref ça m'intéresse !
wink Merci d'avance !

Hors ligne

#363 Le 07/12/2010, à 09:51

Welloum

Re : A quoi ressemble votre environnement - automne/hiver 2010/2011

Federom a écrit :
Welloum a écrit :

Oui, c'est bien conky avec un petit script lua : l'auteur en est wlourf et tu peux voir ses exemples sur deviantart ici, ici, ici ou enfin !

Ses scripts sont téléchargeables ici.

Si tu veux plus de détails, je posterai les miens modifiés, mais je voulais souligner le travail de l'auteur cool !

Je veux bien tes scripts, il faut s'inscrire sur le forum pour récupérer les scripts de l'auteur, et j'attends toujours le mail de confirmation d'inscription... Bref ça m'intéresse !
wink Merci d'avance !

Alors mon conkyrc modifié :

# -- Conky settings -- #
background no
update_interval 600

cpu_avg_samples 2
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 2048
imlib_cache_size 0

# -- Window specifications -- #
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,sticky,skip_taskbar,skip_pager,below

border_inner_margin 0
border_outer_margin 0

minimum_size 400 400

alignment tr
gap_x 600
gap_y 300

# -- Graphics settings -- #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no


default_color FFFFFF

#For pictures on hard drive folder :

# -- Lua Load -- #
lua_load ~/scripts/pas1.1/photo_album_stack.lua
lua_draw_hook_pre photo_album

#For random pictures generated by an external script (i.e get_deiation;sh)
# -- Lua Load -- #
#lua_load ~/scripts/pas1.1/photo_album_stack.lua
#lua_draw_hook_pre photo_album /tmp/img-deviant

TEXT
#${exec ~/scripts/pas1.1/get_deviation.sh /tmp/img-deviant}

et le script photo_album_stack.lua qui va bien :

--[[
Photo Album Stack by wlourf based on Photo Album by londonali1010 (2009)

This script draws a photo album of the files in a specified directory.
Files will be displayed randomized. Each time the script is called, a photo is added on the previous one.
Some parameters bellow control how the photo is drawn (position, angle ...).
A file /tmp/photo_album.png is created to keep history of the files displayed.

To call this script in Conky (assuming that you have saved it as ~/scripts/pas1.1/photo_album_stack.lua), use the following before TEXT:
lua_load ~/scripts/photo_album_stack.lua
lua_draw_hook_pre photo_album

Before calling the conky, use
rm /tmp/photo_album.png & conky -c ~/scripts/pas1.1/conkyrc
to start with a blank screen


Changelog:
v1.0 -- Original release (03/01/2010)
v1.1 -- Add a gray shadow on the bottom right side of each image (optional) (31/01/2010)
     -- Littles images are no more enlarged 
     -- Filename can be written in the frame and/or a special area 
     -- A specific image (instead of a random image) can be use, so we can get random image from the web
]]


require 'imlib2'

-- OPTIONS
-- "album_dir" is the directory containing the images for your photo album;
-- please note that the path must be absolute (e.g. no "~")
-- don't forget the last /
album_dir = "/home/welloum/Images/Photos/stack/"

-- "w_max" and "h_max" are the maximum dimensions, in pixels, that you want the widget to be.
-- The script will ensure that the photo album fits inside the box bounded by w_max and h_max
-- this is the "drop zone"
w_max, h_max = 400, 400

-- can images go out the drop zone (0=no, else =yes)? i.e; cutted on the border of the drop zone
out_l = 0 --left
out_r = 0 --right
out_b = 0 --bottom
out_t = 0 --top

-- "xc" and "yc" are the coordinates of the center of the photo album,
-- relative to the top left corner of the Conky window, in pixels
xc, yc = w_max/2, h_max/2

-- dispersion of the images around xc,yc (in pixels)
disp_x = w_max
disp_y = h_max

--pictures are resized to fit the drop zone, but they can be smaller than
--the drop zone if pc <=100
pc = 101

-- "t" is the thickness of the frame, in % of the photo (0 = no frame)
t = 3

-- "s" is to draw a shadow on the bottom right side of the image (true/false)
-- has to be improve with rotation of picture
s = true

-- "update_interval" is the number of Conky updates between refreshes
update_interval = 1

-- angle is the maximum angle of rotation of the image, in degrees (0-180).
angle = 20

-- filename of the image created by the script
image_tmp="/tmp/photo_album.png"

-- filename can be written in the frame if it exists
show_filename = false
font_path = '/usr/share/fonts/truetype/thai'
font_name = 'Purisa'

--and/or at xt,yt of  the conky window if font_size>0
--height of text area is twice font_size
font_size = 0
bgcolor={0,0,0}
fgcolor={255,255,255}
xt = 0
yt = 0--800-font_size*2



function get_file_to_use()
    num_files = tonumber(conky_parse("${exec ls -A " .. album_dir .. " | wc -l}"))

    if num_files == nil then num_files = 0 end
    if num_files == 0 then return "none" end

    updates = tonumber(conky_parse("${updates}"))
    whole = math.ceil(updates/update_interval)
    math.randomseed( os.time() )
    num_file_to_show = math.random(num_files)

    return conky_parse("${exec ls " .. album_dir .. " | sed -n " .. num_file_to_show .. "p}")
end


function init_drawing_surface()
    imlib_set_cache_size(4096 * 1024)
    imlib_context_set_dither(1)
end


function draw_image(fixed_image)
    --load fixed image or random image
    if fixed_image == nil then
        image = imlib_load_image(album_dir .. filename)
    else
        image = imlib_load_image(fixed_image)
    end
    if image == nil then 
        print ("can't open image")
        return 
    end
    imlib_context_set_image(image)
    w_img0, h_img0 = imlib_image_get_width(), imlib_image_get_height()
    
    --draw a border (frame) ?
    bsize = 0
    if t>0 then
        bsize = math.floor(math.max(w_img0,h_img0)*t/100)
        fm=imlib_create_image(w_img0, h_img0)
        imlib_context_set_image(fm)
        imlib_image_set_has_alpha(1)
        imlib_context_set_color(255, 255,255,255);
        imlib_image_fill_rectangle(0, 0, w_img0, h_img0);
        
        imlib_blend_image_onto_image(image,1, 0,0, w_img0, h_img0,
            bsize,bsize,w_img0-2*bsize, h_img0-2*bsize)
        imlib_context_set_image(image)
        imlib_free_image()
        imlib_context_set_image(fm)
        image=fm
    else
        imlib_context_set_image(image)
    end

    --draw a shadow ?
    ssize=0
    if s then
        ssize = math.floor(math.max(w_img0,h_img0)/100)
        w_img0, h_img0 = imlib_image_get_width(), imlib_image_get_height()
        shad=imlib_create_image(w_img0+ssize, h_img0+ssize)
        imlib_context_set_image(shad)
        imlib_image_set_has_alpha(1)

        range = imlib_create_color_range();
        imlib_context_set_color_range(range);
      --  imlib_context_set_color(0, 0, 255, 255)
       --         imlib_add_color_to_color_range(0);
        --imlib_context_set_color(255, 0, 0, 255);
        imlib_context_set_color(0, 0, 0, 255);
        imlib_add_color_to_color_range(0);
        imlib_context_set_color(0, 0, 0, 0)        
        imlib_add_color_to_color_range(100);

        imlib_context_set_image(shad);
        imlib_image_fill_color_range_rectangle( w_img0,0, w_img0+ssize, h_img0+ssize,180);
        imlib_image_fill_color_range_rectangle( 0,h_img0, w_img0+ssize, h_img0+ssize,90);
        
        imlib_blend_image_onto_image(image, 1, 0,0, w_img0, h_img0,
            0,0,w_img0, h_img0)
        imlib_context_set_image(image)
        imlib_free_image()
        imlib_context_set_image(shad)
        
    end        
    
    --add filename in the frame ?
    if show_filename and t>0 then
        imlib_add_path_to_font_path(font_path)
        font = imlib_load_font(font_name .. '/' .. bsize/2)
        imlib_context_set_font(font)
        imlib_context_set_color(0, 0, 0, 255);
        imlib_text_draw(bsize,h_img0-bsize,filename); 
        imlib_free_font();
    end

    --add filename in the text area ?
    if font_size>0 then    
        actual_image=imlib_context_get_image()
        imlib_add_path_to_font_path(font_path)
        font = imlib_load_font(font_name .. '/' .. font_size)    
        imlib_context_set_font(font)    
        
        text_img=imlib_create_image(w_max, font_size*2)
        imlib_context_set_image(text_img)
        imlib_image_set_has_alpha(0)
        imlib_context_set_color(bgcolor[1],bgcolor[2],bgcolor[3],255);
        imlib_image_fill_rectangle(0, 0, w_max, font_size*2);        
        imlib_context_set_color(fgcolor[1],fgcolor[2],fgcolor[3], 255);
        imlib_text_draw(font_size/4,font_size/4,filename); 
        imlib_context_set_image(actual_image)
    end

    --rotate image
    math.randomseed( os.time() )
    if angle == 0 then
        angle_rad=0
    else
        angle_rad = (math.random(angle*2)-angle)*math.pi/180
    end
    rot_img = imlib_create_rotated_image(angle_rad)
    imlib_free_image()
    imlib_context_set_image(rot_img)

    --after rotation, image is a square
    w_img, h_img = imlib_image_get_width(), imlib_image_get_height()
    if h_max >= w_max then
        width = (w_max - 2*bsize - ssize)
        height = width
    else
        height = (h_max - 2*bsize - ssize)
        width = height
    end
        
    --prevent enlarge of small images
    if width>w_img0 or height>h_img0 then
        if h_img0 >= w_img0 then
            width = w_img0
            height = w_img0
        else
            width = h_img0
            height = h_img0
        end 
    else
        width = pc*width/100
        height = pc*height/100
    end

    --create or open final image for the conky
    file = io.open(image_tmp, "r")
    io.close()
    if file == nil then
        x=imlib_create_image(w_max,h_max)
        imlib_context_set_image(x)
        imlib_image_set_has_alpha(1)
        imlib_save_image(image_tmp)
        imlib_free_image()
    end
    imageTmp = imlib_load_image(image_tmp)
    imlib_context_set_image(imageTmp)
    rand_x = 0
    if disp_x ~= 0 then
        rand_x = math.random(2*disp_x)-disp_x
    end
    rand_y = 0
    if disp_y ~= 0 then
        rand_y = math.random(2*disp_y)-disp_y
    end

    dx = xc - width/2 + rand_x
    dy = yc - height/2 + rand_y

    --fit in window if asked
    -- abs and random values are here to avoid stacks close to the corners
    if out_l == 0 then
        dx = math.max(0, math.abs(dx))
    end
    if out_r == 0 then
        if dx>(w_max-width) then
            dx=math.random(w_max-width)
        end
    end
    if out_t == 0 then
        dy = math.max(0,math.abs(dy))
    end
    if out_b == 0 then
        if dy>(h_max-height) then
            dy = math.random(h_max-height)
        end
    end

    --add picture (filename) to the final image
    imlib_blend_image_onto_image(rot_img, 1, 0,0, w_img, h_img,dx,dy,width,height)

    --add text (filename) to the final image    
    if font_size>0 then
        imlib_blend_image_onto_image(text_img, 1, 0,0, w_max,font_size*2,
                                                xt,yt,w_max,font_size*2)    
        imlib_context_set_image(text_img)
        imlib_save_image(image_tmp)
    end
    
    -- free memory
    imlib_context_set_image(imageTmp)
    imlib_save_image(image_tmp)

    imlib_render_image_on_drawable(0,0)
    imlib_free_image()

    imlib_context_set_image(rot_img)
    imlib_free_image()
    
end


function conky_photo_album( fixed_image)
    if tonumber(conky_parse("${updates}"))<1 then return end
    if conky_window == nil then return end
    if fixed_image == nil then
        filename = get_file_to_use()
    else
        filename = fixed_image
    end
    if filename == "none" then
        print(album_dir .. ": No files found ... ")
    else
        draw_image(fixed_image)
    end
end

Je ne saurai trop te conseiller de regarder les scripts originaux quand tu y auras accès, il y a entre autres possibilité pour le script d'aller chercher des images sur deviantart, modifier la position de la pile, son étalement sur l'écran...

En tout cas, si tu veux plus de détails, n'hésite pas ! smile


Il n'y a que les imbéciles qui ne changent pas d'avis. C'est mon avis. Et je ne vois pas pourquoi j'en changerais.
L'intelligence a été inventée il y a très longtemps par un type vachement malin. La connerie, c'est autre chose, c'est une création collective.
Au fond, est-ce que ranger ça ne revient pas un peu à foutre le bordel dans son désordre ?

Hors ligne

#364 Le 07/12/2010, à 19:36

Yamaw

Re : A quoi ressemble votre environnement - automne/hiver 2010/2011

Voici le mien :
1291745231.png 1291745322.png

Dernière modification par Yamaw (Le 07/12/2010, à 20:09)

Hors ligne

#365 Le 07/12/2010, à 22:13

nathéo

Re : A quoi ressemble votre environnement - automne/hiver 2010/2011

Waaah, je pourrais jamais utilisé un fond d'écran pareil, c'et encore pire que le nouveau thème du forum niveau confort visuel… roll

Dernière modification par nathéo (Le 07/12/2010, à 22:38)


C'est rarement par le sarcasme qu'on élève son âme.
Le jus de la vigne clarifie l'esprit et l'entendement.
De quoi souffres-tu ? De l'irréel intact dans le réel dévasté ?
La liberté n'est qu'un vain fantôme, quand une classe d'hommes peut affamer l'autre impunément. timezone[America/Bogota]

Hors ligne

#366 Le 07/12/2010, à 22:21

zb1000

Re : A quoi ressemble votre environnement - automne/hiver 2010/2011

oui ça pique un peu les yeux smile Mais des fois le piquant, c'est cool...

Hors ligne

#367 Le 08/12/2010, à 11:10

basile

Re : A quoi ressemble votre environnement - automne/hiver 2010/2011

Bravo zb1000, j'aime beaucoup ton bureau et surtout tes docks.
J'aimerais bien essayer quelque chose de semblable.
Peux-tu me dire dire quel dock tu utilises et avec quel theme, stp ?

Dernière modification par basile (Le 08/12/2010, à 11:10)

Hors ligne

#368 Le 08/12/2010, à 16:12

zb1000

Re : A quoi ressemble votre environnement - automne/hiver 2010/2011

Merci, je suis content que ça plaise à qqn.

Ca a un peu changé :
capture1px.th.png

Tous sont en masquage intelligent, en gros ils apparaissent si le bureau est vide ou avec des fenetres reduites et se cachent quand les fenetres sont maximisées. Trés agréable.

Les docks, c'est tout simplement Avant window navigator, la version ppa : https://launchpad.net/~awn-testing/+archive/ppa (merci a gilir pour le lien). Il permet desormais plusieurs docks, et ça j'adore smile.
Le theme du dock actuel c'est j4XORsDockBar en mode "lucido"mais je ne sais plus du tout où je l'ai trouvé (ms a priori, ça doit se retrouver assez vite. le precedent etait clearlooks dark, fourni avec cette version de awn, je crois. Pour avoir les "décrochements", faut jouer avec les separateurs dans les applets.

Theme des controles : brackfire black (sur gnome look je crois)
themes des bordures : un bete gorilla, installé de base il me semble
icones: clarity (gnome look itou) : ça ressemble fort à aweoken, avec un script permettant de changer la couleur, tout est expliqué

Hors ligne

#369 Le 11/12/2010, à 04:17

Leyna

Re : A quoi ressemble votre environnement - automne/hiver 2010/2011

@zb1000
Moi aussi je trouve que c'est joli! (J'ai tendance à aimer les environnements noirs & bleus de toute façon ^^)

zarakaï a écrit :

Bonsoir Leyna c'est quoi la barre en bas ? ca fait super longtemps que je me suis pas penché sur l'aspect bidouillage de mon install mais là vraiment ca me bote bien...
L'environnement c'est gnome ? (si ca été dis avant j'ai pas eu le temps de d'aller voir, ca fait plus d'un an que je suis pas passer sur le forum...)

Avec pas mal de retard je te réponds... Désolée ça doit faire 2 ou 3 semaines que je suis pas passée par là!
Alors l'environnement c'est openbox, et la barre du bas tint2.
Si tu veux plus de détails quant à la configuration d'openbox ou de tint2 en particulier, demande-moi, y a pas de soucis smile

Hors ligne

#370 Le 11/12/2010, à 13:39

yanightmare

Re : A quoi ressemble votre environnement - automne/hiver 2010/2011

Ca fait un bail que j'ai pas posté ici smile.

Je teste KDE depuis ce matin. J'aime plutôt !

1292067570.png

1292067273.png

1292067441.png

Hors ligne

#371 Le 11/12/2010, à 15:20

Seco59

Re : A quoi ressemble votre environnement - automne/hiver 2010/2011

Juste ajouté un conky et modifié le thème d'icônes depuis mon dernier shot :

mini_145896Capture.png

mini_537545Capture1.png


Acer Aspire - AMD Athlon II X2 260 3.2 Ghz - 4 Go de Ram - ATI Radeon HD5450.
Fedora 17 / XFCE 4.10

Hors ligne

#372 Le 11/12/2010, à 16:06

hashaspiree

Re : A quoi ressemble votre environnement - automne/hiver 2010/2011

Mon bureau n'a rien de dingue, mais le fond d'ecran est parfait pour la saison, et le systeme biensur wink

le lien

trouvé sur gogolemap.

Dernière modification par hashaspiree (Le 12/12/2010, à 13:05)


n'oublions pas que nous sommes des animaux

Hors ligne

#373 Le 11/12/2010, à 22:43

@nne

Re : A quoi ressemble votre environnement - automne/hiver 2010/2011

Une petite mise à jour de mon côté depuis la dernière fois : Mon bureau entièrement Gnome

Vide :

1292081763.png

Navigation :

1292085716.png

Couleur du fond des fenêtres : #05201F.

Exposé :

1292085760.png

Tous les bureaux :

1292085818.png

Thème personnalisé :

- contrôles : A new hope (du thème Emerald du même nom),
- couleur de sur-lignage : #BAC1AC, empruntée au thème Bisigi "Eco",
- bordures de fenêtres : Ambiance. J'ai changé la couleur du bouton "fermeture" de façon qu'il soit du même gris que les autres, que la fenêtre soit active ou pas, et qu'il soit orange au moment où je passe le pointeur de la souris dessus pour fermer la fenêtre.
- icônes : Alpha-1,
- pointeur : white glass.

Et toujours pas de conky ! cool

Dernière modification par @nne (Le 15/12/2010, à 09:20)

#374 Le 12/12/2010, à 14:19

Federom

Re : A quoi ressemble votre environnement - automne/hiver 2010/2011

Welloum a écrit :

Je ne saurai trop te conseiller de regarder les scripts originaux quand tu y auras accès, il y a entre autres possibilité pour le script d'aller chercher des images sur deviantart, modifier la position de la pile, son étalement sur l'écran...

En tout cas, si tu veux plus de détails, n'hésite pas ! smile

Merci pour tes scripts et merci à l'auteur de la version originale ! smile Je vais potasser un peu ça et essayer de l'intégrer à mon environnement actuel.

Hors ligne

#375 Le 13/12/2010, à 03:50

ehmicky

Re : A quoi ressemble votre environnement - automne/hiver 2010/2011

Salut à tous,
TOp
Avec des applis :
TOq
Pas de barre de tâches, ni pour les fenêtres de barres de titres, de boutons pour fermer, etc. Tout marche aux raccourcis clavier et aux mouvements de souris smile

Dernière modification par ehmicky (Le 13/12/2010, à 04:01)


Stego++, bibliothèque libre de stéganographie (avec cryptographie), à venir !
Besoin de votre aide :
Stats sur les compilateurs C++ les plus utilisés
Comment utiliser les archetypes C++ ?

Hors ligne