Commit Graph

1507 Commits

Author SHA1 Message Date
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
Julien Danjou 98e219fab8 Remove a bad strlen() usage 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 1dc6012aea Fix typo in comment 2008-03-23 15:52:17 +01:00
Arnaud Fontaine fc9e31ff62 get rid of PATH_MAX
I  replaced  stack  memory  allocations  with PATH_MAX  by  heap  memory
allocations on post-2.2 branch  because PATH_MAX isn't necessary defined
according to  POSIX specification.   For instance GNU/Hurd  doesn't have
PATH  size restriction,  thus doesn't  defined PATH_MAX  and compilation
will fail.

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:17 +01:00
Julien Danjou 6b4c9fed83 Remove useless ; after DO_SLIST macro 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 cbc5ec8060 Use common/xscreen infra to get screens info 2008-03-23 15:52:17 +01:00
Julien Danjou e8e02d5a5d Initialize a.prev to NULL 2008-03-23 15:52:17 +01:00
Julien Danjou eee37d063c Use xinerama_is_active attribute and drop XineramaIsActive() usage 2008-03-23 15:52:17 +01:00
Julien Danjou 355b7d67b3 Change screen_get_bycoord() proto to take ScreensInfo as arg, and speed up things 2008-03-23 15:52:17 +01:00
Julien Danjou 0bde5c9e29 Move some screen functions from screen.c to new common/xscreen.c 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
Chris Ciulla 77827ee364 Add a simple progress bar example
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:17 +01:00
calmar 64afb9b840 awesomerc.5.txt with Kai Grossjohann's improved shell-script
+ making the AUTHOR's section more homogeneous.
+ some other minor corrections

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:17 +01:00
Julien Danjou 0cd969bfb9 Split screen_build_screen() into more generic code and type: screeninfos_new() 2008-03-23 15:52:17 +01:00
Julien Danjou 8db08ea43e [awesome-menu] Fix a problem with XK_Tab completion and with "." listing 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
Julien Danjou 28af9e7e61 Replace perror() with warn() 2008-03-23 15:52:17 +01:00
Chris Ciulla edc0c01f2b Add a "Simple Clock" example from the wiki in awesomerc manpage 2008-03-23 15:52:17 +01:00
Julien Danjou 6d5d2e68d6 [awesome-menu] Add a final / to directory names 2008-03-23 15:52:17 +01:00
Julien Danjou 6b06e6808a [awesome-menu] Add support for ~user path 2008-03-23 15:52:17 +01:00
Julien Danjou 8c901c8b1e Be more verbose about errors and warnings location
Print function name and line,
and also print a W: or E: in front of the warn/errors
2008-03-23 15:52:17 +01:00
Julien Danjou 33560c393d [awesome-menu] Check that we have enough width to draw our items 2008-03-23 15:52:17 +01:00
Julien Danjou 4a41a50a39 [awesome-menu] Better handling of selected item that are drawn in the end of the list 2008-03-23 15:52:17 +01:00
Julien Danjou e668bf8dc3 [awesome-menu] Fix problem with filling via stdin was overwritten 2008-03-23 15:52:17 +01:00
Julien Danjou e6b3aa92f5 [awesome-menu] Remove a bunch of useless keybindings and add support for ISO_Left_Tab 2008-03-23 15:52:17 +01:00
Julien Danjou f00008938f [awesome-menu] Fix wrong size in a_strcpy() 2008-03-23 15:52:17 +01:00
Julien Danjou 5b2e9c0139 [awesome-menu] Fix infinite loop on bad completion 2008-03-23 15:52:16 +01:00
Julien Danjou a5f0df0c95 [awesome-menu] Add support for empty prompt 2008-03-23 15:52:16 +01:00
Julien Danjou 1fb61f54df [awesome-menu] Remove command line option and add support for menu {} in conffile 2008-03-23 15:52:16 +01:00
Julien Danjou cb525dd4ba [awesome-menu] rewrite handling of ~ which was too buggy 2008-03-23 15:52:16 +01:00
Julien Danjou df8e3abf50 [awesome-menu] item_list_fill_file() now returns a Bool and support for ~ as directory 2008-03-23 15:52:16 +01:00
Julien Danjou 9d14cca8e0 [awesome-menu] Make compute_match() take an arg, and rewrite conditions 2008-03-23 15:52:16 +01:00
Julien Danjou 7cbd82011b [awesome-menu] Change item_list_fill_file() proto to take directory as arg 2008-03-23 15:52:16 +01:00
Julien Danjou 5b7200daf2 [awesome-menu] Try harder to grab keyboard
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-03-23 15:52:16 +01:00
marco candrian b9c2d11d83 awesomerc.5: new progressbar option: vertical=<boolean> 2008-03-23 15:52:16 +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 f4447f0026 awesomerc.5 update for the new option "reverse=<boolean>" 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
marco candrian ce7f77c8c5 data{} sections needs a unique title now
so like: data title {}

Used for widget_tell to individually address/change them
2008-03-23 15:52:16 +01:00