Commit graph

21 commits

Author SHA1 Message Date
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
0b5e3e7cd1 split config.h, and move DO_SLIST() 2008-01-21 16:31:14 +01:00
Julien Danjou
5c9291ff0b use a cache system for status bar 2008-01-07 18:12:38 +01:00
marco candrian
37da7d0d01 graph widget added
example config:

graph gr_cpu {
  width = 80
  height = "0.8"
  fg = "#336633"
  bg = "#000000"
  bordercolor = "#669966"
  padding_left = 0
  mouse = {...}
  x = ...
  y = ...
}

Looks like here: http://www.calmar.ws/tmp/112-Sun-screen.png

I renamed lpadding to padding_left, and bcolor to bordercolor
also on the progressbar widget.

The awesomerc page would still be to write, when this patch will get accepted.

Hints are always welcomed.
2008-01-06 20:51:40 +01:00
Julien Danjou
aed3e569de add a align option to draw_text 2008-01-03 15:57:07 +01:00
Julien Danjou
c4e88f9928 add new tasklist widget 2008-01-03 12:39:28 +01:00
Julien Danjou
4f65aa8f51 rework headers inclusion 2008-01-01 18:02:36 +01:00
Julien Danjou
909f92d500 replace UICB_PROTO macro by a typedef 2008-01-01 17:25:48 +01:00
Julien Danjou
ddbdbb2ed3 new width: progressbar 2007-12-23 14:27:56 +01:00
Julien Danjou
b0a8522466 rename a bunch of widget functions 2007-12-22 20:55:17 +01:00
Julien Danjou
8c898256b1 new widget: add support for netwmicon 2007-12-22 19:32:47 +01:00
Julien Danjou
9df4429ae3 cosmetics and add copyright 2007-12-22 15:46:57 +01:00
Julien Danjou
3f3748d4bd new widget to draw icons from PNG image 2007-12-22 15:37:43 +01:00
Aldo Cortesi
ce556ec743 The preferred line length is 80 characters. 2007-12-18 11:27:26 +01:00
Aldo Cortesi
4723ab3627 This patch is a first draft of independently targetable textboxes, and a
protocol to speak to them. Given a textbox widget definition like this:

        textbox mail {
            default = 0
        }
        textbox time {}

We can update the boxes individually by going:

    echo 0 tell_widget mail 10
    echo 0 tell_widget time 12:01

Text boxes will dynamically resize to fit their contents. A textbox can be
cleared by going:

    echo 0 tell_widget name

A text-box containing no text will take up 0 space in the bar, i.e. it will not
be visible at all

Textboxes now supersede statusbar_set_text, so this call has been removed.
2007-12-17 18:22:05 +01:00
Aldo Cortesi
7385815927 Add basic framework for uicb_widget_tell. For now, it does nothing, but stay
tuned.
2007-12-17 18:19:39 +01:00
Aldo Cortesi
5923c90aaa Solidify widgets.
Factor out common initialisation into a common_new function. Copy the section
title into the Widget title attribute.
2007-12-16 12:57:47 +01:00
Aldo Cortesi
ec80635cbc Fix compilation warning related to parsing of statusbar widgets config.
Also make the code surrounding this problem more legible, and remove
Widget_ptr, which just confuses the issue.
2007-12-16 12:00:00 +01:00
Julien Danjou
602f921559 first try to get widget configurable 2007-12-15 18:21:02 +01:00
Aldo Cortesi
76ddf235ac Widget-ise the statusbar.
We now have the beginnings of a flexible widget structure for the statusbar.
For now, there is no behavioural change, and the interface is a bit crude, but
watch this space!
2007-12-15 10:15:42 +01:00