Julien Danjou
c3c20c4f8e
client: move floating state handling to Lua
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:22 +01:00
Julien Danjou
2037a053a9
layout: move layout code to Lua
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:21 +01:00
Julien Danjou
bf7bae8082
awful.client: add tiled()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-12 19:19:29 +01:00
Sébastien Gross
47c836de97
awful: add generic completion wrapper for awful.prompt.run()
...
[completion.lua.in]:
* add generic() function for completion
[prompt.lua.in]
* add completion_run() function as a run() wrapper with completion
kw_feeder sould return a key = value dictionnary. Completion is run against
key. Once completion is done, exe_callback(value, key) is executed.
That's the major differences between awful.prompt.run() and
awful.prompt.completion_run
Notice: This is not thread safe but as longs as only one keygrabber could be
run who cares?
Signed-off-by: Sébastien Gross <seb-awesome@chezwam.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-12 19:19:29 +01:00
Leon Winter
458ae34560
naughty: introducing urgency levels and presets
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-12 19:19:29 +01:00
Julien Danjou
4ac4cc3ab2
beautiful: simplify data retrieval
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-12 19:19:29 +01:00
Julien Danjou
e0de3b153e
client: deprecate minimize in favor of minimized
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-12 19:19:29 +01:00
Julien Danjou
576a1e85fc
client: maximize belongs to client internal
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-12 19:19:29 +01:00
koniu
03e08257fb
naughty: notification.run destroys the popup
...
Popups that have mouse button 1 tied to a function (run) will be
destroyed upon execution.
Signed-off-by: koniu <gkusnierz@gmail.com>
2008-12-12 19:19:29 +01:00
koniu
5603d93da6
naughty: hover_timeout can now be used in notify()
...
Signed-off-by: koniu <gkusnierz@gmail.com>
2008-12-12 19:19:29 +01:00
koniu
e46ae9e3c2
awful.widget: beautiful font for {tag,task}list
...
Beautiful themes can now set 'tasklist_font' and 'taglist_font' in
font_desc format ie. "Sans 7"
Signed-off-by: koniu <gkusnierz@gmail.com>
2008-12-12 19:19:29 +01:00
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
92fd31b7f5
awful.util: new function file_readable()
...
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
1e93dda065
beautiful: use regex instead of helper function
...
Signed-off-by: Julien Danjou <julien@danjou.info>
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
a4254b195d
dbus: add D-Bus hooks
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-12 16:51:41 +01:00
Julien Danjou
53a830aea1
mouse: move resize code to awful.mouse
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-12 16:51:41 +01:00
Julien Danjou
33c7083617
awful.tag: setmwfact() gets optional screen param
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-12 16:51:41 +01:00
Julien Danjou
49bb7e87b4
mouse: remove client_move, move it to awful
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-12 16:51:41 +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
506e453a2f
remove deprecated functions
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-12 16:51:40 +01:00
Gregor Best
0a07e706b0
awful.widget: fix tasklist urgent background
...
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-10 17:36:54 +01:00
Maxime COSTE
22b7a79313
tabulous: do not swap clients in display
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-10 10:07:46 +01:00
Julien Danjou
a760f4b0bc
awful.titlebar: do not overwrite mouse bindings on close
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-08 16:43:24 +01:00
Julien Danjou
f58b9e3566
awful.widget: stop using useless closures in taglist
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-04 23:06:38 +01:00
Julien Danjou
f36cb984e3
awful.widget: store buttons in tasklist
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-04 20:20:16 +01:00
Julien Danjou
77510610d2
awful.widget: tasklist need update on arrange
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-04 00:06:22 +01:00
Julien Danjou
ab2502c6c6
awful.widget: update taglist on focus change
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-03 11:48:23 +01:00
Sébastien Gross
f5bf5aa43d
awful.prompt: Add support for KP_Return
...
* The numeric paddle Enter key wasn't processed
Signed-off-by: Sébastien Gross <seb-awesome@chezwam.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-29 09:30:28 +01:00
Michael Hofmann
3cc7843f05
awful.widget: fix iteration over removed elements
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-27 11:20:25 +01:00
Julien Danjou
5fecdc052d
awful.client: fix iteration over removed elements
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-27 11:18:35 +01:00
Maarten Maathuis
e6905ededb
awful.client: fix minor luadoc issue
...
Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-27 10:58:10 +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
41c6fbb31c
awful.prompt: return true since we unregistered (FS#383)
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-24 11:56:42 +01:00
Maarten Maathuis
69f0796762
awful.client: fix luadoc syntax for visible function.
...
Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-22 08:36:42 +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
Julien Danjou
6cbbd45d3a
awful.widget: fix name on minimize
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-19 21:17:15 +01:00
koniu
4c031ba398
awful.prompt: add trail space in prompt_text_with_cursor()
...
Adds a trailing space after text if cursor position < text length to
prevent width of the widget changing particularly useful when using
'text' and 'selectall' to do eg. in-place renaming.
Sample textbox content (# space, _ cursor).
Before:
textbox before prompt: #term#
selectall prompt textbox : #_erm <- shorter than other cases
after pressing end : #term_
After:
textbox before prompt: #term#
selectall prompt textbox : #_erm#
after pressing end : #term_
Signed-off-by: koniu <gkusnierz@gmail.com>
2008-11-19 13:00:04 +00:00
koniu
b4f16ff649
awful.prompt: new arg 'selectall' in add()
...
If set along with 'text' (prefilled content) it will position the cursor at
the beginning of the line and and on text input (and not control keys,
arrows, etc.) will overwrite the prefilled content with the new input.
Signed-off-by: koniu <gkusnierz@gmail.com>
2008-11-19 13:21:12 +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
Julien Danjou
26b9c88de2
awful.widget: document taglist_squares_resize and fix
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-17 20:33:21 +01:00
koniu
a9ed61589f
awful.prompt: add new field 'text' to run() args
...
Signed-off-by: koniu <gkusnierz@gmail.com>
2008-11-17 20:21:12 +01: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
Norbert Zeh
9d2b21d25d
awful.widget: allow customization of tag icon
...
Made changes to lib/awful/widget.lua.in to accept the following additional
customizations through theme or arguments to taglist/tasklist labeling
functions:
* args.squares_resize/theme.taglist_squares_resize (Boolean, default = true)
If true, taglist icons are resized; otherwise, they aren't.
* args.floating_icon_align/theme.floating_icon_align (String, default = "right")
Controls the alignment of the icon drawn in the tasklist for floating clients.
Signed-off-by: Norbert Zeh <nzeh@cs.dal.ca>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-15 10:02:46 +01:00
Ez
7a9fe19f4c
awful.client: fix urgent.jumpto
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-15 09:53:21 +01:00
Julien Danjou
3ebcc1aa5a
luaa: add more deprecation information
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-14 12:12:01 +01:00
Espen Wiborg
a042f33964
revelation: Add arrow key behavior
...
As promised by the documentation comment for the keyboardhandler.
Signed-off-by: Espen Wiborg <espenhw@grumblesmurf.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-13 23:18:10 +01:00
Julien Danjou
fd078674c6
beautiful: change description
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-13 15:26:01 +01:00
Julien Danjou
f8c9b93be9
luaa: use fg/bg as keys for colors
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-13 15:18:56 +01:00
Julien Danjou
292f09bb93
luaa: add support for conffile in index
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-13 15:18:41 +01:00
Julien Danjou
590077004a
luaa: add {new,}index to awesome lib, use for font
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-13 15:13:19 +01:00
Julien Danjou
80f5d43631
awful.prompt: stop grabbing keyboard before calling callback
...
This allows execution of grabbing function.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-13 14:07:27 +01:00
Julien Danjou
b9398ad51e
awful.prompt: merge some keys
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-13 14:06:22 +01:00
Julien Danjou
ccfb0b1935
awful.prompt add in history also on 'j' and 'm'
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-13 14:02:38 +01:00
Julien Danjou
9416bf2419
awful.prompt: fix typo
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-13 14:00:21 +01: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
Julien Danjou
863f9a78a8
revelation: import
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-13 11:19:00 +01:00
Espen Wiborg
8bafd24882
awful.widget: Implement taglist.label.noempty in terms of label.all
...
This gives .noempty lovers a share in the taglist_squares goodness.
Signed-off-by: Espen Wiborg <espenhw@grumblesmurf.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-13 10:48:45 +01:00
Julien Danjou
cdc9d40f4a
awful.titlebar: fix theme support
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-12 11:55:35 +01:00
Julien Danjou
2cafc6a1c8
awful.util: deprecate write on stderr
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-12 11:38:06 +01:00
Julien Danjou
0cddba4d82
awful.menu: store active child
...
This fix the menu when they are multiple submenu entries.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-10 19:09:20 +01:00
Julien Danjou
e9916d34b6
awful.widget: fix tags removal
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-10 17:05:33 +01:00
Julien Danjou
dc98cd915e
awful.client: fix master compat
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-10 13:56:18 +01:00
Julien Danjou
36e4847dd1
themes: move theme icons to themes/
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-10 12:02:08 +01:00
Julien Danjou
2c71245388
awful.widget: check for image
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-10 10:42:19 +01:00
Julien Danjou
c13654f08d
beautiful: drop getimage()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-09 15:57:00 +01:00
Julien Danjou
7108e5cb20
awful, beautiful: getimage rather belongs in beautiful
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-09 15:51:43 +01:00
Gregor Best
5f250eedc2
invaders: fix highscore display
...
this commit fixes the bug which lead to the highscore display not
disappearing if 'p' was pressed while showing the highscores
2008-11-08 20:43:00 +01:00
Gregor Best
1569818c5e
invaders: add pause button
...
this commit adds 'p' as a pause button to invaders
2008-11-08 17:01:04 +01:00
Gregor Best
58693c3d7d
beautiful: add get_image function
...
this commit adds awful.beautiful.get_image(imgspec) to retrieve an image
from a beautiful theme
2008-11-08 17:01:04 +01:00
Julien Danjou
950e9f96c5
awful.menu: fix icon widget if no image given
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-08 14:32:50 +01:00
Julien Danjou
cb43b5a5bd
awful.menu: rewrite to be more object compliant
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-07 15:27:51 +01:00
Julien Danjou
c529c3d7ed
awful.completion: doc fixes
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-07 15:27:51 +01:00
Julien Danjou
e528cc7e50
awful.client: rename master to getmaster
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-07 15:27:51 +01:00
Julien Danjou
7c2a17e49f
awful.beautiful: fix comments
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-07 15:27:51 +01:00
Julien Danjou
2e609e3d55
awful, tabulous: change titles
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-07 15:27:51 +01:00
koniu
d4bfaa8598
awful.prompt: add underline style to in run() args
...
Signed-off-by: koniu <gkusnierz@gmail.com>
2008-11-06 17:07:12 +00:00
Gregor Best
eb20df8dfc
invaders: fix broken screenshot path
2008-11-06 16:05:43 +01:00
Maarten Maathuis
3cf17a9fae
titlebar: generate mouse_enter and button events for the entire titlebar (and redirect them to the client)
...
Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-05 16:48:45 +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
Julien Danjou
105e155606
awful.screen: enhance doc
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-04 21:09:35 +01:00
Julien Danjou
c51d4d61ac
awful.screen: fix focus doc
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-04 21:05:02 +01:00
koniu
97194aaa98
naughty: new option 'config.hover_timeout'
...
Signed-off-by: koniu <gkusnierz@gmail.com>
2008-11-04 19:35:18 +00:00
Julien Danjou
e0730d0da8
awful.client: deprecate swap()
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-03 23:15:00 +01: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
76a77cf070
awful.client: remove dumb comment line
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-03 17:11:04 +01:00
Damien Leone
d8aef41795
awful.menu: add menu_toggle parameter
2008-10-30 12:52:16 +01:00
Julien Danjou
17a6d2283e
awful: fix marking
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-29 09:39:06 +01:00
Gregor Best
2d6c09ee5a
invaders: replace ammo with round display
...
this commit replaces the now useless ammo display with a display showing
the current round.
2008-10-27 18:05:31 +01:00
Gregor Best
adcf32f9ed
invaders: code cleanup
2008-10-27 18:05:31 +01:00
Gregor Best
3895c0cde9
invaders: code cleanup
2008-10-27 18:05:31 +01:00
Gregor Best
7c20b14ce5
invaders: remove useless shots table
...
this commit removes the now useless table gamedata.shots and replaces it
with a single variable of the name gamedata.shot
2008-10-27 18:05:31 +01:00
Gregor Best
2a839ad875
invaders: fix indention and spacing
...
this commits fixes invaders' indention and spacing (every \t has been
replaced by 4 spaces)
2008-10-27 18:05:29 +01:00
Damien Leone
a2f3790dce
awful.menu: add a close function and fix various bugs
2008-10-27 12:30:47 +01:00
Julien Danjou
827d084dbf
awful.menu: escape client name in clients menu
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-25 15:36:08 +02:00
Damien Leone
666f3c9c83
awful.menu: add custom theme and fix various bugs
2008-10-25 15:33:02 +02:00
Julien Danjou
bf5001337c
awful.client: rename focus and swap bydirection
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-24 20:31:18 +02:00
Damien Leone
e3ea2789de
awful.menu: fix screen width computation
2008-10-24 11:04:02 +02:00
Damien Leone
7750631bf2
awful.menu: prevent menus from poping outside the work area
2008-10-24 10:37:59 +02:00
Julien Danjou
9f8773ddfa
awful.widget: fix taglist label without beautiful (FS#353)
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-23 17:55:38 +02:00
Damien Leone
75e6f4cb9e
awful.menu: change menu parameters to use a table, add height and width parameters
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-23 15:22:10 +02:00
Julien Danjou
3005196d64
awful.titlebar: use pairs instead of ipairs
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-23 11:22:58 +02:00
Julien Danjou
dc58313eee
awful.menu: add a menu for listing clients
...
This also allows usage of images object as icons, and destroy menu on
function execution.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-23 11:19:46 +02:00
Julien Danjou
9b722181fa
awful.util: add support for config dir
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-22 17:56:51 +02:00
Julien Danjou
8824d9f703
awful.menu: add support for functions
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-22 17:52:51 +02:00
Julien Danjou
25bf12868a
widgets: use a geometry callback
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-22 17:32:17 +02:00
Damien Leone
4a6885e0eb
awful.menu: align text when item doesn't have icon
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-22 16:25:07 +02:00
Damien Leone
4d5b43a75e
awful.menu: import
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-22 15:25:20 +02:00
Gregor Best
e2d8f043b0
invaders: change points per enemy
...
this commits changes the points you get per enemy:
enemy #1 : 15
enemy #2 : 10
enemy #3 : 5
2008-10-21 22:49:15 +02:00
Gregor Best
04b5e24c43
invaders: clean code
...
this commits makes all enemies of a certain type use the same image
object to clean up the code a bit.
2008-10-21 22:49:02 +02:00
Gregor Best
7041a4680d
invaders: add luadoc comments
...
this commit adds luadoc comments right before invaders.run() so that all
its parameters are explained in luadoc.
2008-10-21 22:47:07 +02:00
Gregor Best
c846da24e1
invaders: change enemy distribution
...
This commit changes the distribution of enemies so that each row
contains only one type of enemy.
2008-10-21 22:47:07 +02: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
5ab2497b43
client, screen: use geometry rather coords as keyword
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-21 15:31:52 +02:00
Julien Danjou
2a36b021d1
client: icon_name is stored and watched
...
This permits to update tasklist on icon name changes.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-21 15:15:28 +02:00
Julien Danjou
bd47652fe0
awful.widget: tasklist to update on name changes
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-21 15:07:18 +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
Gregor Best
08a700f132
Increased Invaders difficulty
...
This commit increases invaders difficulty a little bit and cleans up the
code (moved static enemy data to the top of the file, made keygrabber a
part of capi, not an own local variable)
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-20 19:42:40 +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
Gregor Best
072937ec70
Various changes to awful.util and invaders
...
This commit changes various aspects of awful.util and invaders:
awful.util:
- added awful.util.getdir(d)
This function takes one argument and returns a matching directory,
as of now, only "cache" is supported. The return value is either
$XDG_CACHE_HOME/awesome/ or $HOME/.cache/awesome/, XDG_CACHE_HOME
takes precedence
invaders:
- renamed invaders to awesome invaders
at two places in the sourcecode, invaders is referred to as
"Space Invaders for Awesome". As Taiko holds the trademark for
the term "Space Invaders", I changed both of its occurences to
"Awesome Invaders" to avoid conflicts with the law of Japan and
the United States of America (and possibly others)
- added support for XDG_CACHE_HOME
this change adds support for XDG_CACHE_HOME as the cache directory
for highscores and screenshots
- added some parameters to invaders.run()
this change adds three parameters to invaders.run, supplied as a
table. They are "x", "y" and "solidbg".
"x" sets the X coordinate of the playfield
"y" sets the Y coordinate of the playfield
"solidbg" sets the color of the playfield background for people who
have problems with transparency. This still looks rather hackish and
needs to be polished
- changed startup position
up until now, invaders always started at (100,100) on the first
screen, now it starts centered to the screen on which the mouse cursor
is.
2008-10-17 19:20:31 +02:00
Gregor Best
1f8d52b3f5
Fix 1800 points bug and finally get beautiful support working
...
This commit (finally) fixes beautiful support, now it should work with
beautiful and without.
Another fixed serious bug is that no more enemies are spawned if the
score is higher than 1800
2008-10-15 18:59:31 +02:00
Gregor Best
b3518691cf
add beautiful support to invaders.lua and change Garoth' name
...
This commit adds beautiful support to invaders.lua and changes Garoth'
name in the top comment to his full name + nickname
2008-10-14 21:39:56 +02:00
Julien Danjou
32ea9f46ca
invaders: import
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-14 18:16:26 +02:00
Julien Danjou
39f50d5b06
awful.titlebar: do not build args
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-12 17:14:44 +02:00
Thomas Harning Jr
946b38147e
awful.titlebar: Pull in missing dependencies and grab theme details
...
Modules beautiful and widget are required by the titlebar:
* beautiful to retrieve theme details
* widget for the buttons
Signed-off-by: Thomas Harning Jr <harningt@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-09 18:45:46 +02:00
Andrei Thorp
3c1f516758
Added swapbydirection to client.lua.in in awful.
...
Works similar to focus.bydirection, but swaps windows instead.
Also, added a generic local method get_client_in_direction for
use by (swap|focus)\.?bydirection.
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-09 18:44:31 +02:00
Julien Danjou
df843a8452
awful.placement: fix no_overlap (FS#335)
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-02 12:12:42 +02:00
Julien Danjou
683b1a9572
awful.widget: use margin instead of spaces
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-01 17:03:49 +02:00
Julien Danjou
842886b7d0
awful: add compatibility with old function names from util
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-01 16:26:30 +02:00
Julien Danjou
9dca1330c2
awful.client: maximize works in floating layout
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-01 15:05:54 +02:00
Julien Danjou
3f9b726065
awful.client: use right data array
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-10-01 15:00:33 +02:00
Julien Danjou
da2f473386
awful.util: fix wrong variable
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-30 17:07:25 +02:00
Julien Danjou
c3775199b0
awful.util: use loadfile instead of loadstring
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-30 17:00:19 +02:00
Julien Danjou
581a8b1103
tabulous: store tags in otable
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-30 16:39:43 +02:00
Julien Danjou
da52a7b197
awful: add helper to check configuration file syntax
...
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-09-30 15:50:41 +02:00