Commit Graph

79 Commits

Author SHA1 Message Date
koniu e1762128b7 naughty: bottom positioning has to count border twice
Signed-off-by: koniu <gkusnierz@gmail.com>
2008-12-12 19:19:28 +01:00
koniu 61947ec1c8 naughty: fix a bug on timeout when popup was destroyed by hover_timeout
Signed-off-by: koniu <gkusnierz@gmail.com>
2008-12-12 19:19:28 +01:00
Leon Winter 2d321ffbf8 naughty: add getIcon() to find icons with basename
Adds:
   config.icon_dirs {}
   config.icon_formats {}

"It adds the ability to search for icons in specified folders. This
is necessary for some applications using dbus like the firefox dbus
plugin."

To test it: naughty.notify{ icon = 'firefox' }

Signed-off-by: Leon Winter <Leon.Winter@informatik.uni-oldenburg.de>
Signed-off-by: koniu <gkusnierz@gmail.com>
2008-12-12 19:19:28 +01:00
koniu 0358d1085d naughty: notify() returns notification object
This makes notification mangling outside of naughty.lua much easier:
http://awesome.naquadah.org/wiki/index.php?title=Naughty#Popup_calendar

Signed-off-by: koniu <gkusnierz@gmail.com>
2008-12-12 19:19:28 +01:00
koniu 8599426168 naughty: never scale icon to text height
Also removes default icon_size of 16 to avoid confusion.

Signed-off-by: koniu <gkusnierz@gmail.com>
2008-12-12 19:19:28 +01:00
Leon Winter 118fbcb985 naughty: add D-Bus notification support
Allows Naughty to receive D-Bus notifications and emulate notification-daemon
and such.

Signed-off-by: Leon Winter <leon.winter@informatik.uni-oldenburg.de>
Signed-off-by: koniu <gkusnierz@gmail.com>
2008-12-12 19:19:28 +01:00
Julien Danjou 4fcf48e247 widgets: remove name property
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-12 16:51:40 +01:00
Julien Danjou c7ee83fdbf naughty: notify() returns notification object
This makes notification mangling outside of naughty.lua much easier:
http://awesome.naquadah.org/wiki/index.php?title=Naughty#Popup_calendar

Signed-off-by: koniu <gkusnierz@gmail.com>
2008-11-25 09:47:46 +01:00
Julien Danjou 46822d510b naughty: fix font support
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-21 14:41:03 +01:00
koniu 0e97360d32 naughty: fix a bug with variable width popups
Signed-off-by: koniu <gkusnierz@gmail.com>
2008-11-21 09:21:20 +01:00
koniu 64f0848940 naughty: fix beautiful support properly
Signed-off-by: koniu <gkusnierz@gmail.com>
2008-11-21 09:21:20 +01:00
koniu c453d6c611 naughty: arg 'screen' to notify() is now respected
Signed-off-by: Matthias Schroeder <ms@softimpulse.de>
Signed-off-by: koniu <gkusnierz@gmail.com>
2008-11-20 20:36:05 +01:00
koniu 65d5e29141 naughty: new argument 'width' in notify()
Signed-off-by: Sébastien Gross <seb@chezwam.org>
Signed-off-by: koniu <gkusnierz@gmail.com>
2008-11-19 10:50:19 +00:00
koniu 651b5e5f70 naughty: new config option 'margin' + 2 renamed
* Renamed config.margin to config.padding. Controls spacing between popup and
  workarea border.

* Renamed config.gap to config.spacing. Controls spacing between popups.

* Added config.margin. Controls spacing between popup wibox and text.

Signed-off-by: koniu <gkusnierz@gmail.com>
2008-11-15 20:08:17 +00:00
koniu e536dbe2ea naughty: text-icon separator uses margin now
Signed-off-by: koniu <gkusnierz@gmail.com>
2008-11-15 18:39:26 +00:00
koniu edeabd1a8b naughty: popup size can now adjust to icon height
* If icon is present, popup height will now be adjusted to the greater
  of text-height and icon-height.
* Reorganized notify() into more logical order to allow this.

Signed-off-by: koniu <gkusnierz@gmail.com>
2008-11-15 16:55:38 +00:00
koniu 3cc64ab081 naughty: fix a bug in destroy()
+ hooks.timer.unregister gets notification.die not .timer
+ remove pointless comments

Signed-off-by: koniu <gkusnierz@gmail.com>
2008-11-15 15:25:22 +00:00
koniu c86b41235f naughty: check workarea in get_offset, not at load
Signed-off-by: koniu <gkusnierz@gmail.com>
2008-11-15 09:27:27 +00:00
Julien Danjou 2e97991a90 beautiful: merge awful.beautiful, stop registering system
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-13 11:54:23 +01:00
koniu 0d98ed7f5a naughty: cleanup of some code repetitions
Signed-off-by: koniu <gkusnierz@gmail.com>
2008-11-05 02:18:01 +00:00
koniu 390b218526 naughty: new notify() parameter 'run'
Signed-off-by: koniu <gkusnierz@gmail.com>
2008-11-05 02:03:28 +00:00
koniu 9447d29204 naughty: config.icon_size works now (FS#359)
Signed-off-by: koniu <gkusnierz@gmail.com>
2008-11-04 20:10:31 +00:00
koniu 97194aaa98 naughty: new option 'config.hover_timeout'
Signed-off-by: koniu <gkusnierz@gmail.com>
2008-11-04 19:35:18 +00:00
koniu 71b93f44dd naughty: destroy oldest if no room for new popup
Signed-off-by: koniu <gkusnierz@gmail.com>
2008-11-03 21:14:19 +01:00
koniu 91dfbbb4eb naughty: icon_size added to config and notify()
Signed-off-by: koniu <gkusnierz@gmail.com>
2008-11-03 21:14:13 +01:00
Julien Danjou 4eb096e236 libs: use geometry instead of coords
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-21 16:25:06 +02:00
Julien Danjou 862fe193ee Rewrite {tag,task}list in Lua.
This removes the C implementation of taglist and tasklist widgets and
use a Lua one.

This works by letting .widgets property of wiboxes to be a table with
table, and setting a special metatable on them which notify awesome on
newindex events, updating wiboxes.

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-20 20:06:09 +02:00
koniu a48e71af18 naughty: destroy() now takes object instead idx (FS #350)
Fixes the bug although still relies on index being passed with notification
in notify() and re-set by arrange().

Also box:geometry() in arrange() stopped working with just one argument
so it pushes all coords now.

Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-20 17:42:49 +02:00
koniu e6d644c4fb naughty: import
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-18 13:40:01 +02:00