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
Uli Schlachter
523661760a
Layoutbox: Use oocairo instead of image
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-29 16:10:01 +02:00
Uli Schlachter
03fd3f3146
awful.wibox: Remove unused local variables
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-29 16:08:16 +02:00
Uli Schlachter
e53054553d
awful.menu: Use oocairo instead of image
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-29 16:06:44 +02:00
Uli Schlachter
4279c879b3
awful.widget.button: Use oocairo instead of image
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-29 15:57:10 +02:00
Uli Schlachter
c3e0f72c56
gears.object: Import
...
This implements objects in lua. Objects provide the signal functions that are
known from the C API ({dis,}connect_signal(), emit_signal(), add_signal()).
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-28 16:23:00 +02:00
Uli Schlachter
b75ada22d8
gears.sort: Import
...
The difference to table.sort() is that this is guranteed to be stable.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-28 16:09:40 +02:00
Uli Schlachter
51068f5cdf
naughty: Set the window type to "notification"
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-28 13:14:27 +02:00
Uli Schlachter
5f90e92f09
awful.menu: Set the window type to "popup_menu"
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-28 13:13:14 +02:00
Uli Schlachter
9a8177e457
awful.wibox: Set the window type to "dock".
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-28 13:09:19 +02:00
Uli Schlachter
825efd21b3
Naughty: Add a missing "local"
...
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-18 16:34:31 +02:00
Uli Schlachter
49b4573bc8
awful.widget: Stop using named colors
...
Those were removed a while ago already.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-18 12:27:09 +02:00
Uli Schlachter
71b15d292c
Fix a "table expected instead of nil" error
...
It seems like with lots of bad luck, the garbage collector manages to "steal"
the table with the buttons right after we decided to use it. Evil collector!
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-16 19:02:15 +02:00
Uli Schlachter
89f05c90ca
{tag,task}list: Use a weak-valued table
...
The data table is used to map objects (clients/tags) to the buttons associated
with them. This is done so that we don't have to re-create the button objects
each time this lists are updated.
The problem was that this weak-keyed table was never cleared, because the value
had a strong reference to the key (via the button's signal):
btn:connect_signal("press", function () b:emit_signal("press", o) end)
"o" is the key in the table and btn is reachable from the value. This prevented
the garbage collection of the key. Using a weak-keyed and weak-valued table
fixes this.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-16 17:28:50 +02:00
Ignas Anikevicius (gns_ank)
2c1d09ebc2
Add match_any function and rule_any definition for different client matching.
...
Signed-off-by: Ignas Anikevicius (gns_ank) <anikevicius@gmail.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-14 16:51:40 +02:00
Uli Schlachter
9a24779425
Implement color parsing
...
This adds a lua module for parsing colors. Named colors like "black" aren't
supported, but #rrggbb and #rrggbbaa colors do work.
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-09 16:54:57 +02:00
Julien Danjou
c38e326242
Revert "tag.lua: check name argument to add() is valid"
...
This reverts commit 6cb61939c4
.
2010-09-08 10:18:21 +02:00