Uli Schlachter
107ba3fefc
Systray: Configure background color via beautiful
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-17 09:24:59 +02:00
Uli Schlachter
1beb274944
Wibox: Use the "refresh" signal for redrawing
...
Previously, we used a timer with a timeout of 0 for redrawing the wibox. I had
the visual impression that the wibox was black for a moment. With strace I was
able to measure a latency of 10ms until the wibox was finally redrawn.
This now uses the "refresh" signal. With this, we get our latency down to
something like 0.15ms which sounds a lot better. :)
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-15 18:57:50 +02:00
Uli Schlachter
8712be7265
awful.widget.prompt: Fix error display
...
This has to use :set_text() now.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-14 21:17:02 +02:00
Stjujsckij Nickolaj
8bca1025ac
Remove last known usage of deprecated in Lua 5.1 `arg`
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-12 18:38:04 +02:00
Uli Schlachter
bb52505bb8
awful.util.join: Stop using arg
...
Implementing vararg functions via arg is deprecated in lua. This kind of thing
should instead be done via "...".
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-11 16:55:56 +02:00
koniu
dc6a2c6b0d
awful.completion: callback functions return table of matches
...
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-11 15:22:44 +02:00
koniu
4429bea62f
awful.prompt: add 'autoexec' argument
...
If set the prompt will execute the command upon completion which returns
only one match.
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-11 15:22:18 +02:00
Uli Schlachter
38d4602425
margin: Accept individual margins
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-08 17:22:00 +02:00
Uli Schlachter
2ca25128a5
Remove outdate require("awful.widget.layout")
...
The file isn't present any more and it's not needed anyway.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-07 21:46:52 +02:00
Uli Schlachter
e64d36b104
Awful.menu: Fix the text
...
Looks like someone wasn't using set_markup() where he was supposed to do so.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-07 14:24:16 +02:00
Uli Schlachter
688b4fb628
textbox: Prefix internal variables with "_"
...
This makes sure that textbox.text = "foo" doesn't work at all. It was never
supposed to work anyway. Sorry that I break stuff again.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-07 14:22:44 +02:00
Uli Schlachter
650b3d6df5
Progressbar: Fix border
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-07 13:52:32 +02:00
Uli Schlachter
734973c60c
Graph: Fix border and geometry
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-07 13:50:44 +02:00
Uli Schlachter
547f732b00
systray: Automatically fit into available space
...
Instead of having to set the systray's base size by hand, it now automatically
uses min(avail_width, avail_height) as its base size. That's way less surprising
for people.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-07 11:54:45 +02:00
Uli Schlachter
7edabc39fd
awful.tooltip: Fix for new widget layouts
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-07 11:11:48 +02:00
Uli Schlachter
9d4e5d31bf
awful.widget.layout: Remove
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-07 11:07:25 +02:00
Uli Schlachter
5eed35b7e0
awful.menu: Make sure the arrow is always visible
...
By setting the textbox in an align layout's middle, the submenu icon will always
get the space it needs and the textbox will get the rest. Previously, the
textbox took as much as it wanted and the image got the rest. This looked ugly.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-07 10:15:29 +02:00
Uli Schlachter
bb975a2464
awful.prompt: Fix for the new textbox
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-06 21:27:42 +02:00
Uli Schlachter
6b972ffde0
widgets: Add mouse::{enter,leave} signals
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-06 21:17:05 +02:00
Uli Schlachter
4af11b821c
Whoops, fix wibox signals
...
emit_signal() already adds the object as the first argument, so we don't have to
add it ourselves.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-06 20:46:11 +02:00
Uli Schlachter
18799f32f8
Emit mouse::move signals when we get a motionnotify
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-06 20:44:22 +02:00
Uli Schlachter
ebcda492a1
wibox.layout.fixed: Always draw "empty" widgets
...
If a widget has a width/height of 0, we can safely draw it without running out
of the available space. This code checks if we got enough space after we now how
much space the next widget wants.
This fixes the systray. It has to be drawn at least once so that the C core can
set up stuff correctly. However, thanks to the systray having a width of 0, it
wasn't drawn by the layout.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-06 19:47:34 +02:00
Uli Schlachter
1fab3aa745
wibox.layout.align: Bugfix
...
It didn't correctly attach to its second and third widget's widget::updated
signal.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-06 19:46:47 +02:00
Uli Schlachter
27d448bc97
awful.widget.common: Add background to the icon
...
The icon should get the same background everything else gets. Fix this by making
the background the outer-most widget in each item.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-06 18:45:50 +02:00
Uli Schlachter
01aa7e66e6
wibox.widget.background: Use draw_widget()
...
Without draw_widget(), the input handling is broken.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-06 18:45:13 +02:00
Uli Schlachter
661a8a7b38
Some more minor fixes, make "strict" happy
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-06 16:27:38 +02:00
Uli Schlachter
c271ed7b13
tasklist: Use a fixed layout
...
We need a fixed layout here to make tag names like "media" work. Without this,
every take would get the same space, no matter how long its name is.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-06 15:48:50 +02:00
Uli Schlachter
58bf0b0c64
wibox.layout.fixed: Fix typo
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-06 15:48:50 +02:00
Uli Schlachter
bddecffe97
Be compatible to oopango 1.0
...
Some idiot broke the API in oopango git. Work-around this by checking which
version of oopango we have.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-06 15:11:20 +02:00
Uli Schlachter
b55dc20319
awful.widget.textclock: Port to new widget system
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-06 14:30:45 +02:00
Uli Schlachter
0cb3569e3e
awful.widget.layoutbox: Port to new widget system
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-06 14:30:00 +02:00
Uli Schlachter
3b9150f05a
awful.widget.button: Port to new widget layout
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-06 14:28:43 +02:00
Uli Schlachter
1b134b2361
lua.widget.prompt: Port to new widget system
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-06 14:27:16 +02:00
Uli Schlachter
bf23ebdf46
graph,progressbar: Port to new widget system
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-06 14:25:59 +02:00
Uli Schlachter
97ed5e70b8
{task,tag}list: Port to new widget system
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-06 14:23:36 +02:00
Uli Schlachter
05c49a3a2b
awful.menu: Port to new widget system
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-06 14:21:19 +02:00
Uli Schlachter
6a7fdc8fb0
awful.wibox: Port to new widget system
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-06 14:20:30 +02:00
Uli Schlachter
52e678a8c7
Naughty: Port to new widget system
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-06 14:19:20 +02:00
Uli Schlachter
ad2bc9d183
beautiful: Track the font for oopango
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-06 14:18:11 +02:00
Uli Schlachter
2eae7e5cf4
Import lib/wibox/, a new widget system in lua
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-06 12:42:56 +02:00
Uli Schlachter
ad3e965e16
Fix some broken luadoc
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-29 21:38:06 +02:00
Uli Schlachter
c8b93cec76
progressbar: Remove gradients
...
gears.color can do the same in better and they are currently broken anyway.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-29 19:26:23 +02:00
Uli Schlachter
d8dce35269
progressbar: Port to oocairo
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-29 19:24:36 +02:00
Uli Schlachter
048064b8ef
graph: Remove gradients
...
They can and should now be done via gears.color instead. It was porting ever
since this was ported to oocairo anyway...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-29 19:02:03 +02:00
Uli Schlachter
6375ce4175
graph: Port to oocairo
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-29 18:57:52 +02:00
Uli Schlachter
d74198b7db
gears.color: Add much more sophiscated stuff
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-29 18:54:20 +02:00
Uli Schlachter
fce09d4d42
tasklist: Remove unused local variables
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-29 16:18:21 +02:00
Uli Schlachter
40aa974ac2
taglist: Use oocairo instead of image
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-29 16:17:03 +02:00
Uli Schlachter
f4d37f74d3
naughty: Use oocairo instead of image
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-29 16:15:11 +02:00
Uli Schlachter
6f5862a2de
beautiful: Remove unused local variables
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-29 16:11:53 +02:00