-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

calmar c. wrote:
> On Sat, Jun 06, 2009 at 03:23:03PM +0200, Julien Danjou wrote:
>>> Let's see which other patches I will come up with... (Anyone wants to 
>>> enhance
>>> awful.widget.*? vertical progressbars and graphs with more than one graph 
>>> sound
>>> like a goal (I use one graph which shows used mem and caches/buffers at the 
>>> same
>>> time))
>> No no no, do not rewrite that crap again. Wants more graph on top of
>> each other? Use a widget layout. :-)
> 
> the graph has more than one thing. You can use a line style to
> have one over all others.
> 
> -- -- graph widget
> gr_cpu = widget({ type = "graph", align = "right" })
> gr_cpu.width = 70
> gr_cpu.height = 0.90
> gr_cpu.grow = "left"
> gr_cpu.bg = beautiful.gr_cpu_bg
> gr_cpu.border_color = beautiful.gr_cpu_border_color
> 
> gr_cpu:plot_properties_set("total", 
> { 
>   ["fg"] = beautiful.gr_cpu_total_fg,
>   ["fg_center"] = beautiful.gr_cpu_total_center,
>   ["fg_end"] = beautiful.gr_cpu_total_end,
>   ["vertical_gradient"] = true,
>   ["scale"] = false,
>   ["max_value"] = "100.0",
>   ["style"] = "bottom"
> })
> gr_cpu:plot_properties_set("user", 
> { 
>   ["fg"] = beautiful.gr_cpu_user_fg,
>   ["fg_center"] = beautiful.gr_cpu_user_center,
>   ["fg_end"] = beautiful.gr_cpu_user_end,
>   ["vertical_gradient"] = true,
>   ["scale"] = false,
>   ["max_value"] = "100.0",
>   ["style"] = "bottom"
> })
> gr_cpu:plot_properties_set("nice", 
> { 
>   ["fg"] = beautiful.gr_cpu_nice_fg,
>   ["fg_center"] = beautiful.gr_cpu_nice_center,
>   ["fg_end"] = beautiful.gr_cpu_nice_end,
>   ["vertical_gradient"] = true,
>   ["scale"] = false,
>   ["max_value"] = "100.0",
>   ["style"] = "line"
> })

This doesn't work in master (well, it does, but you get a deprecation warning
and awful.widget.graph which is supposed to replace this doesn't work with any
of these lines). Which is why I wanted to add some of this back...

@Julien: Apropos, any reason why we can't have 'scale = true'? Would you mind a
patch which adds this back, too? And if we have auto-scaling, adding back
max_value (currently it requires values between 0 and 1) wouldn't be much work
either....

Cheers,
Uli

- --
"Do you know that books smell like nutmeg or some spice from a foreign land?"
                                                  -- Faber in Fahrenheit 451
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iQEcBAEBCAAGBQJKKppGAAoJECLkKOvLj8sG2LkH/R3Y+1QT7HzVLDSsj4zAHxgF
GnIWH4M2beAUyxaUE7+DBlE234i2bLbaBUwcdG5W+EmrrpFj0twrAX8QbY8dgX4q
PCEgowwjh/PTUPx+zXoK9bTSeegupoH/rzVGHjBoFuNG+PkEYBfPFpA3T7J9uMGy
/LRTihhhltIGTqUF0Bo2Ondt1EWyv5vXJCQnEt7ZRA1wbrUjEu05R0BuLip/6nQ/
fiyFFWlI8wRPTVBiV8al5jkNE92UO9WeLlSfNNacib0eLMMHME4uQUSDrBLK7M9+
lc2TaW8yjU5UcrxDf73l+bX1fdV1cBjqsCFHOoAeNRjFcxUa4EHLqXqL0JZuBk0=
=P2xU
-----END PGP SIGNATURE-----

-- 
To unsubscribe, send mail to awesome-devel-unsubscr...@naquadah.org.

Reply via email to