Julien Danjou
13e5b96807
don't stick textbox size to the first textsize sent via widget_tell
2007-12-30 21:03:22 +01:00
Julien Danjou
75c7d04adf
allow textbox to have special width
2007-12-30 14:49:03 +01:00
Julien Danjou
0eb4743385
draw_text don't pad with font->height / 2 by default: padding is now an arg
2007-12-30 14:42:51 +01:00
Julien Danjou
e57f387df0
fix size stuff for square
2007-12-30 14:06:45 +01:00
Julien Danjou
f7263bbca8
bug fix: reset widget->width to 0
2007-12-30 13:42:49 +01:00
Julien Danjou
1021f86e24
rework draw stuff
...
- remove display from DrawCtx
- add Drawable in statusbar
2007-12-30 12:26:11 +01:00
Julien Danjou
34ddf418ad
fix colors handling
2007-12-29 22:01:11 +01:00
Julien Danjou
3d71a2e9a4
merge draw_get_image_{width,height}() into draw_get_image_size()
2007-12-29 21:44:44 +01:00
Julien Danjou
11a4ecc32a
optimize loop
2007-12-29 21:37:04 +01:00
Robert Millar
eb65306127
Custom netwm icons, scaling icons!
...
I hacked together support for custom netwm icons set in the rules
section of .awesomerc, and for iconboxes and netwm icons to be scaled
to fit into the statusbar. It could probably be done a bit more
cleanly than I've done it, though :)
Rob
2007-12-29 21:30:37 +01:00
Julien Danjou
bf5d5fa17e
add support for fg/bg colors and dedicated font for focustitle widget
2007-12-29 19:39:46 +01:00
Julien Danjou
360d9023a4
allow textbox widgets to have their own font
2007-12-29 16:04:06 +01:00
Julien Danjou
48d9ea047f
simplify is_client_tagged() proto
2007-12-27 23:05:34 +01:00
Julien Danjou
38c3547dfb
fix warning
2007-12-27 20:35:53 +01:00
Julien Danjou
5f92667773
simplify sel handling
2007-12-27 19:57:46 +01:00
Julien Danjou
8f9be2289a
focus_get_latest_client_for_tags() now supports Tag **, use it for widgets
2007-12-27 19:23:10 +01:00
Julien Danjou
e335b32e5f
add copyright notice
2007-12-27 18:11:47 +01:00
Julien Danjou
c900e37843
add mouse bindings to status bar
2007-12-27 15:49:00 +01:00
Julien Danjou
88b3f28f49
remove get_current_tag() call
2007-12-27 11:36:49 +01:00
Julien Danjou
33add50256
store location and width of each widgets
2007-12-27 11:35:45 +01:00
Julien Danjou
7be6a97972
change "default" in textbox to "text" and set it to a good default
2007-12-27 00:16:29 +01:00
Julien Danjou
91cc5a4618
use image instead of symbols for layouts
2007-12-27 00:13:44 +01:00
Julien Danjou
d5d9439777
add support for Urgency hint
2007-12-23 15:16:10 +01:00
Julien Danjou
2906ead93c
better computing for margin
2007-12-23 14:51:55 +01:00
Julien Danjou
ddbdbb2ed3
new width: progressbar
2007-12-23 14:27:56 +01:00
Julien Danjou
d428982af7
simplify
2007-12-23 13:46:36 +01:00
Julien Danjou
10200477c8
change info in copyright
2007-12-22 20:55:39 +01:00
Julien Danjou
b0a8522466
rename a bunch of widget functions
2007-12-22 20:55:17 +01:00
Julien Danjou
c232576631
rename a bunch of draw functions
2007-12-22 20:17:24 +01:00
Julien Danjou
e72a278080
allow to shrink net_wm_icon to statusbar size
2007-12-22 20:14:13 +01:00
Julien Danjou
8c898256b1
new widget: add support for netwmicon
2007-12-22 19:32:47 +01:00
Julien Danjou
5dfd96a3f2
add copyright
2007-12-22 15:43:48 +01:00
Julien Danjou
1a1c75b4bd
add copyright
2007-12-22 15:42:34 +01:00
Julien Danjou
e505b76062
cosmetic + copyright
2007-12-22 15:41:28 +01:00
Julien Danjou
70707a37ad
push iconbox.c
2007-12-22 15:38:14 +01:00
Julien Danjou
55be368539
cosmetic
2007-12-22 15:30:23 +01:00
Aldo Cortesi
7190e4fa48
Change awesome_config -> AwesomeConf.
...
All other struct definitions in the project follow this naming convention.
2007-12-19 10:43:02 +01:00
Aldo Cortesi
9bb28772ed
Make textbox foreground and background configurable.
2007-12-19 10:41:50 +01:00
Aldo Cortesi
ce556ec743
The preferred line length is 80 characters.
2007-12-18 11:27:26 +01:00
Aldo Cortesi
205f2c55ca
Make "Statusbar statusbar" the in VirtScreen "Statusbar *statusbar". This is
...
more consistent with the rest of the interface, and will make our life easier
when we have mulitiple statusbars per screen.
2007-12-18 11:26:18 +01:00
Aldo Cortesi
21fe1add9e
Make drawtext interface more general.
2007-12-18 11:25:50 +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
d5fd96dbd2
Refactor the focus.c interface to use globalconf.
2007-12-17 18:21:42 +01:00
Julien Danjou
077ffb5b43
update titleinfo with the right window
2007-12-16 18:23:37 +01:00
Aldo Cortesi
5715b70ab3
Make empty status bar look nice.
...
It's now possible to have unfilled space on the status bar. Fill it with the
background colour on creation.
Normalise line lengths while I'm at it.
2007-12-16 12:58:21 +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
8880a3804e
Simplify widget draw interface.
2007-12-16 12:54:42 +01:00
Aldo Cortesi
65d8d846f2
Fix compiler warning re unused argument, and improve the function interface
...
while we're at it.
2007-12-16 12:54:09 +01:00
Aldo Cortesi
2f74c079aa
Massive, massive interface refactoring.
...
The big change here is that we now keep our configuration structure in a global
variable called globalconf. This radically simplifies many interfaces, since
passing awesomeconf everywhere is no longer necessary. There are also more
subtle interface effects - now we can reliably identify a screen from just a
screen ID, rather than an awesomeconf, screenid tuple.
Overall, this patch makes most of the interfaces in awesome much nicer to use -
enjoy!
Yes, this is a huge patch, but since a lot of the refactoring was done
systematically using vim macros, splitting this up would have been very hard.
2007-12-16 12:12:48 +01:00
Julien Danjou
3b013f90b1
cosmetic and don't cast for nothing
2007-12-15 16:25:54 +01:00