Julien Danjou
2a47aa7f0b
Add cfg_getalignment() functions
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:21 +01:00
Julien Danjou
7b1ce042de
Add cfg_getposition() and cie to ease libconfuse compatibility
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:21 +01:00
Julien Danjou
19656fc36d
Add a CFG_ALIGNMENT type and use it
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:21 +01:00
Julien Danjou
fe8bd0bb5b
Implement a CFG_POSITION type and use it
2008-03-23 15:52:21 +01:00
marco candrian
214a5c4bfa
new graph-widget option: grow = <{right, left}>
...
Signed-off-by: Marco Candrian <mac@calmar.ws>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:21 +01:00
Julien Danjou
a47e3d26d5
Add support for urgent style in tasklist
2008-03-23 15:52:21 +01:00
Arnaud Fontaine
542a944361
Use Pango for fonts instead of Xft (which hasn't been ported yet to
...
XCB) to measure text.
2008-03-23 15:52:21 +01:00
Julien Danjou
403d7e89f9
Compute style when we need to.
2008-03-23 15:52:20 +01:00
marco candrian
29673467f9
change graph's style to draw_style
...
to prevent confusion with the other style {} sections,
and it might also better describes what is it used for..
2008-03-23 15:52:20 +01:00
Julien Danjou
ece6ffb8fe
Fix background color for icons in tasklist
2008-03-23 15:52:19 +01:00
Julien Danjou
c6eec955c8
Rename Area to area_t
2008-03-23 15:52:18 +01:00
Julien Danjou
a2082ffbae
Factorize some code with taglist_style_get()
2008-03-23 15:52:18 +01:00
Julien Danjou
fa47024714
Change colors infrastructure to style: rename colors_ctx_t to style_t and add font in it
2008-03-23 15:52:18 +01:00
Julien Danjou
9dfd488dda
Change colors handling
2008-03-23 15:52:18 +01:00
marco candrian
2e6dccc5ac
make sure command is some text != ""
...
else call with command arg = NULL
No need to check for a_strlen(command) then on _tell anymore if command != NULL
2008-03-23 15:52:18 +01:00
marco candrian
d1e216936c
try to calculated the height etc in the same way on progressbar and graph
...
some issue is still there (anyway). When there are e.g. 5 horizontal bars
the width of that progressbar (multiply of 5 or similar) may won't be the
same like a graph.
So some tweaking on the graphs' height is necessary then.
2008-03-23 15:52:18 +01:00
marco candrian
b1b2b48a4c
graph: different widget index's (FIXME) handled now
...
widget_tell can feed data to some with another frequenzy.
When drawing a line, it has to be searched for a smaller value, what should
not get overdrawed. In order to find such a smaller value, the correct value
has to be compared to - and therefore the correct index.
2008-03-23 15:52:18 +01:00
marco candrian
2e935ae1f6
vertical_gradient option for the graph widget
...
if true, the color values (fg, fg_center, fg_end) create a color gradient
from 0 to full value, instead of new values to old values.
each data{} can have it's own setting
2008-03-23 15:52:17 +01:00
Julien Danjou
0a980095b3
Rework colors stuff, add a common colors_ctx_t containing colors and shadow options
2008-03-23 15:52:17 +01:00
Julien Danjou
5f26ab448c
Free the previously opened font if changing it via widget_tell in textbox
2008-03-23 15:52:17 +01:00
Julien Danjou
f3652aaca6
Add a pointer to SLIST struct to store previous element
...
This will make back cycling faster
2008-03-23 15:52:17 +01:00
marco candrian
04ff373a63
New progressbar option: vertical=<boolean>
...
if 'true', draws the whole progressbar-block vertically
instead of horizontally.
2008-03-23 15:52:16 +01:00
marco candrian
6216d25bc6
new progressbar option for reversing the drawing
...
inside a data section, with reverse=<boolean> it's possible to reverse the
drawing i.e instead of left to right, from right to left. etc.
2008-03-23 15:52:16 +01:00
marco candrian
397aa33163
widget error infrastructure additions
2008-03-23 15:52:16 +01:00
Julien Danjou
0e69534a65
Add a common error infratructure for widget_tell
...
Signed-off-by: Marco Candrian <mac@calmar.ws>
2008-03-23 15:52:16 +01:00
marco candrian
3efadded39
graph widget handles property arguments now
...
data section values:
echo '0 widget_tell progess data title new_value' ...
universal settings are width, height, padding_left, bg, bordercolor like:
echo '0 widget_tell progess height value' ...
2008-03-23 15:52:16 +01:00
marco candrian
0c4dc79bb6
progressbar widget handles property arguments now
...
data section values:
echo '0 widget_tell progess data title new_value' ...
data properties: fg, bg, fg_center, fg_end, bordercolor works like this:
echo '0 widget_tell progess fg_end title new_color' ...
universal settings to tune are gap, width, height, padding:
echo '0 widget_tell progess padding value' ...
2008-03-23 15:52:16 +01:00
marco candrian
57e9cb468f
textbox handles properties now
...
text, fg, bg, font, width and text_align actually
2008-03-23 15:52:16 +01:00
marco candrian
c384252bc6
iconbox handles the property arguments
...
image <image), resize <{true, false}> are supported actually
2008-03-23 15:52:16 +01:00
marco candrian
3569ab617d
new property argument to widget _tell functions
...
actually the _tell function won't handle the new argument.
Coming patches will handle them.
it will need now something like this:
echo '0 widget_tell widget property value'
where property can be anything used in the awesomerc file,
that means what will be supported. Like: fg, fg_end, width, font...
(actually it ignores the property value and changes what have been changed in
the past as well.)
2008-03-23 15:52:16 +01:00
Julien Danjou
4451e9099e
Add support for text shadow, add new text_shadow_offset option.
2008-03-23 15:52:15 +01:00
Julien Danjou
86927a9e7e
textbox can be flex-aligned
2008-02-28 16:19:38 +01:00
Julien Danjou
b7d79d8bea
use physical screen
2008-02-26 07:15:24 +01:00
marco candrian
4ff0dae17e
trailing whitespaces removed
...
like:
find . -iname "*.txt" -o -iname "*.c" -o -iname "*.h" | xargs sed -i 's/\s\+$//'
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-02-13 09:05:10 +01:00
marco candrian
070ec6dbcd
little memory leak fix *shrug*
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-02-13 09:04:32 +01:00
Julien Danjou
ae75f55acd
change draw_color_new() proto to fill the struct and return status
2008-02-13 08:58:21 +01:00
Julien Danjou
68affe21fd
do not draw win that skip focus
2008-02-12 10:29:41 +01:00
Julien Danjou
95fc524993
set widget alignment for graph
2008-02-11 19:01:48 +01:00
Julien Danjou
72d68b13a3
change focus raising
2008-02-09 23:12:40 +01:00
Julien Danjou
0bfa880b0f
add align option to widget to specify their alignment
2008-02-08 10:59:55 +01:00
Julien Danjou
91f80b251c
rename align to text_align
2008-02-08 09:58:36 +01:00
Julien Danjou
170ed9882a
rename netwmicon to focusicon
2008-02-06 20:13:41 +01:00
Julien Danjou
ffbcea0084
remove focustitle widget
2008-02-06 20:05:14 +01:00
Julien Danjou
528ff7316c
tasklist can now show focused only client
2008-02-06 20:03:18 +01:00
Julien Danjou
b2e004b453
add scratch window support
2008-02-06 09:06:43 +01:00
marco candrian
8567009d22
rename of fg_middle/fg_half to fg_center and fg_full to fg_end
...
A hint from maxauthority. The names would be unified now in the progressbar
and the graph widget. And (hopefully) it's easier to guess what they mean now.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-02-06 07:32:22 +01:00
Julien Danjou
0e890697ac
fix uninit warning
2008-02-05 15:40:16 +01:00
marco candrian
ff753f1f14
Adds fg_middle + fg_end color option for the graph widget
...
Draws a color-gradient beginning from fg and
if either fg_middle or fg_end is set, through them.
example config:
graph gr_cpu
{
data { scale = false max = 100 style = bottom
fg = "#cc6666" fg_half = "#cc6666" fg_full = "#998888 "}
...
...
}
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-02-05 15:37:21 +01:00
marco candrian
a28f931d08
awesomerc(1) update for progressbar widget option fg_half
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-02-05 12:04:03 +01:00
marco candrian
09e60cb95e
adds fg_half as an option to the progressbar
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-02-05 07:16:12 +01:00