Commit Graph

388 Commits

Author SHA1 Message Date
Julien Danjou 27c80c1950 awful.sn: add
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-14 14:23:39 +02:00
Julien Danjou f4221a1fdf spawn: add support for startup-notification
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-14 14:23:38 +02:00
koniu 3e8506e6cb awful.widget.taglist: remove needless taglist_squares conditions
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-13 13:13:58 +02:00
koniu f0a11b9628 awful.widget.taglist: dont show name if icon_only property is set
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-13 10:54:20 +02:00
Julien Danjou bf837f5d41 awful.util: fix eval
Do not need return actually.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-12 17:38:10 +02:00
Julien Danjou 81b46f9694 awful.widget.tasklist: remove otable usage
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-12 15:11:33 +02:00
Julien Danjou 2dfbd6ea2c awful.widget.taglist: remove otable usage
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-12 15:11:33 +02:00
Julien Danjou 4db50647fe awful.widget.common: remove otable usage
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-12 15:11:33 +02:00
Julien Danjou 527bbfa0e0 awful.titlebar: remove otable usage
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-12 15:11:33 +02:00
Julien Danjou 22b0fe8140 awful.tag: do not use otable() anymore
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-12 15:11:33 +02:00
Julien Danjou e4ab810154 awful.client: do not use otable()
We use a weak-keyed-table, that's enought and quicker.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-12 15:11:33 +02:00
Julien Danjou 82dd52ad69 awful.titlebar: do not call update on changes
We have hooks to do that.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-12 15:05:33 +02:00
Julien Danjou d63b850b98 awful.titlebar: add floating
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-12 15:00:11 +02:00
Julien Danjou 9f34d20f08 event: titlebar are parts of client
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-12 14:29:53 +02:00
Thomas Brunko 991c795629 awful.titlebar: more buttons added
This is a new version of 'titlebar.lua'. There are now additional buttons for:
- setting the 'ontop' attribute
- setting the 'sticky' attribute
- maximizing the client
In addition to changing the state of the client the buttons also show if the
corresponding state is active for a client. All new buttons now require 4
images for:
- unfocused window, state inactive (i.e. ontop == false)
- unfocused window, state active (i.e. ontop == true)
- focused window, state inactive (i.e. ontop == false)
- focused window, state active (i.e. ontop == true)
It's not difficult to add more buttons with any kind of functionality. User
configuration is currently restricted to theming of the buttons. Buttons are
disabled simply by not configuring them in the theme.  The icons for the new
buttons are taken from kde4. They're not really pretty but they're OK to
demonstrate the new features.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-12 14:24:50 +02:00
Julien Danjou 36f4e6cb8a awful.remote: import with remote eval
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-08 17:08:26 +02:00
Julien Danjou b14b52b60c awful.mouse: set the default cursor
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-03 17:15:14 +02:00
Julien Danjou 40d821354a awful.prompt: close file after reading
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-04-02 13:39:52 +02:00
Maarten Maathuis 264a81f3fb client: handle struts (a lot) better
- WINDOW_TYPE_DOCK are chosen first.
- Top/Bottom take precedence over Left/Right.
- Struts are automatically updated.
- Automatically avoid overlap with other struts or wibox'es.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-31 09:17:36 +02:00
Gregor Best addfd7b39f awful.menu: fix custom keybindings
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-31 09:08:11 +02:00
Gregor Best e9acefa24e awful.menu: fix error when using the keyboard to navigate on an empty menu
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-31 09:08:10 +02:00
Nikos Ntarmos b437db6ab0 No need for & as capi.awesome.spawn double-forks
Just a minor change: since capi.awesome.spawn does a double fork, there
is no need to use a '&' to background the spawned process.

Cheers.

\n\n

From 843d7cc255afb8d07e7c91a3a9d1ed706bc07c88 Mon Sep 17 00:00:00 2001
From: Nikos Ntarmos <ntarmos@cs.uoi.gr>
Date: Sun, 29 Mar 2009 21:40:57 +0300
Subject: [PATCH] No need for & as capi.awesome.spawn double-forks

Signed-off-by: Nikos Ntarmos <ntarmos@cs.uoi.gr>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-30 12:53:12 +02:00
Maarten Maathuis b26a21ab0c client: fix luadoc typo
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-28 14:40:07 +01:00
Maarten Maathuis 0bab6e81b9 client: add dockable.{set/get}
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-28 14:40:07 +01:00
Maarten Maathuis 47efde17f5 client, mouse: improve struts a bit
- struts are now additive
- allow multiple docks at the edge of the screen, trigger is approaching workarea from inside

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-28 14:40:06 +01:00
Aleksei Gusev 07b8751ad9 awful.client: removed focusing tag when the urgent window is sticky
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-28 09:26:20 +01:00
Aleksei Gusev 66483beeee awful.widget.tasklist: include sticky windows in the list
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-25 14:51:14 +01:00
Aleksei Gusev ac6ded12a8 awful.widget.tasklist: added posibility to show c.name when iconified instead of <untitled>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-24 14:09:43 +01:00
Julien Danjou cec9686335 awful.hooks: fix dbus registration
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-20 07:59:16 +01:00
Julien Danjou 405b5d0123 awful.completion: fix compatibility (FS#474)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-19 11:03:04 +01:00
Julien Danjou eac5936393 lib: use Lua implementation of otable
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-14 17:19:58 +01:00
Maarten Maathuis 0f8c71e17f unbreak "client: stop using otable"
- Some tag icons were disappearing.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-14 16:45:35 +01:00
Julien Danjou 6430738f17 client: stop using otable
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-14 13:47:50 +01:00
Gregor Best f0ca12837a awful.client: store floating geometry of clients in awful
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-14 08:36:40 +01:00
Gregor Best 2d816fd80c awful.layout.suit.magnifier: fix position of focused screen
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-14 08:35:28 +01:00
Damien Leone 2aeb2304e7 awful.menu: add custom keybindings feature 2009-03-12 19:57:41 +01:00
Damien Leone effb03a976 awful.menu: add keyboard navigation feature 2009-03-12 19:56:11 +01:00
Damien Leone e823596e5a awful.menu: optimizations
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-12 11:49:59 +01:00
Julien Danjou e56f8f30d0 awful.widget: split
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-12 11:49:58 +01:00
Julien Danjou 41296008a3 awful.layout.suit.floating: simplify
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-12 11:49:58 +01:00
Julien Danjou 122e1cc28a awful.layout: make layout optional
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-12 11:49:58 +01:00
Christian Kuka c635d3e2d1 awful.completion: add zsh completion
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-12 11:49:58 +01:00
dcurtis@cs.uiowa.edu 2a2166d856 awful.layout: do not use global env
Layouts are passed a data structure that holds all the
information they need to render the clients.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-12 11:49:58 +01:00
dcurtis@cs.uiowa.edu a2fe3919f2 awful.layout: store name into module
Layouts now store their name as a string and their arrange function
in a table rather than being stored as the entire module.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-12 11:49:58 +01:00
Julien Danjou 5154cfc19f remove deprecated functions
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-12 11:49:58 +01:00
Julien Danjou e6c7770b33 awful.client: remove debug print() (FS#469)
Shame on me.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-12 11:49:54 +01:00
Julien Danjou b07857b4f6 suit.magnifier: fix focused window handling in multi screen
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-03-10 07:56:48 +01:00
Gregor Best 75b4f04251 lib/awful/hooks: fix removal of last timer hook
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-24 19:31:18 +01:00
dcurtis@cs.uiowa.edu 8f7ecb798d awful.client: Automatically select the current client during a toggle
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-24 11:08:22 +01:00
Julien Danjou b282bf0086 awful.menu: fix auto_expand attribute copy between parent and child
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-23 14:19:49 +01:00
Julien Danjou 37d2fb6781 awful.menu: fix auto_expand
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-23 14:12:28 +01:00
Damien Leone 67f04c0d68 awful.menu: add auto expand feature
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-23 13:58:23 +01:00
Damien Leone 232a362994 awful.menu: refactoring menus
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-23 13:55:20 +01:00
Damien Leone 46144588f5 awful.menu: fix submenus coords and fix border gaps between menu items
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-23 10:13:44 +01:00
Gregor Best 01a725757a awful.hooks: replace already existing timer hooks instead of creating new ones
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-21 09:34:54 +01:00
Damien Leone d2af75691e awful.widget: handle clients without title on tasklist widget
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-16 15:01:31 +01:00
Mike Kelly 0d834c325b Luadoc for taglist.gettag.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-16 10:32:24 +01:00
Mike Kelly 851047f6f2 Luadoc for awful.mouse.*_under_pointer
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-16 10:32:21 +01:00
Mike Kelly 77d6562e02 Fix luadoc for escape/unescape. Add docs for getdir.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-16 10:32:16 +01:00
Maarten Maathuis 06bc2a2e37 placement: allow centering on a parent.
- Typical usecase awful.placement.centered(c, c.transient_for).

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-16 10:31:10 +01:00
Julien Danjou c69afaed58 awful.client: new cycle() method
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-14 17:53:03 +01:00
Julien Danjou 8ec2b33fb3 awful.widget: change deprecated key
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-14 17:47:51 +01:00
Julien Danjou e8b7bf9a18 awful.placement: return new geometry and use focused client by default
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-13 23:57:40 +01:00
Julien Danjou 7349fb56a8 awful.placement: add centered placement
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-13 23:56:26 +01:00
Gregor Best b5db8032f9 lib/awful/menu.lua: fix widget buttons
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-13 23:49:36 +01:00
steffoz fc394d61fc Added fg_minimize and bg_minimize to properly color tasklist minimized clients
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-13 23:00:36 +01:00
Gregor Best 3f418ba79a lib/awful/menu.lua: fix item buttons
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-13 22:57:14 +01:00
Maarten Maathuis 93386ff08f mouse: only reserve "docking space" along the largest dimension of the window.
- This avoids a nasty issue with fullheight toolbars.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-11 01:56:58 +01:00
Julien Danjou f24ddbd159 awful.hooks: disallow 0 timer value
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-09 12:14:15 +01:00
Maarten Maathuis 703fd1077d mouse: allow utility, toolbar and dock windows to snap to the edge of the window
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-08 13:21:54 +01:00
Mariusz Ceier be28925fb6 Fix killproperty and floating.delete
Use new API, so they don't emit lua errors:

W: awesome: luaA_dofunction:317: error running function:
/usr/share/awesome/lib/awful/client.lua:595: attempt to index field
'floating' (a nil value)

W: awesome: luaA_dofunction:317: error running function:
/usr/share/awesome/lib/awful/client.lua:761: attempt to index field
'property' (a nil value)

Signed-off-by: Mariusz Ceier <mceier@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-08 12:21:55 +01:00
Maarten Maathuis 247852f4de titlebar: remove some old/unneeded code
- This fixes the resize upon titlebar removal issue.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-07 15:45:07 +01:00
Julien Danjou a47d0d9924 awful.mouse: be smarter when moving between screens (FS#419)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-07 15:40:50 +01:00
Julien Danjou ee382dc5a8 awful.client: use property for floating registering
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-07 15:26:46 +01:00
Julien Danjou fa9e31a2d4 awful.client: add property system
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-07 15:19:27 +01:00
Maarten Maathuis 2e8071efae titlebar: don't resize window when adding titlebar.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-06 22:46:25 +01:00
Gregor Best ef6d6dd12c awful.hooks: finally and for the last time fix timer removal
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-06 22:23:47 +01:00
Gregor Best 321741b0ac awful.hooks: repair fix for timer removal
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-06 17:24:10 +01:00
Gregor Best bc1a2f5448 awful.hooks.timer: fix timer removal
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-06 15:52:59 +01:00
Julien Danjou a13f3fe553 client: handle tags assignment in awful (FS#441)
This also deactivate group management. This can be done in Lua now.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-03 12:20:17 +01:00
Maarten Maathuis b8a371864b client, titlebar: fix some issues involving titlbars and dialogs.
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-03 10:32:00 +01:00
Julien Danjou ae6a598911 awful.titlebar: document modkey argument
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-02 09:51:28 +01:00
Julien Danjou e0a5995fe6 awful.titlebar: allow titlebar on dialogs (FS#439)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-02-02 09:28:45 +01:00
Julien Danjou cc6dee9940 awful.layout.suit.vile: rename to tile
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-28 12:08:33 +01:00
Julien Danjou ed2581c3ec awful.layout.suit: remove tile
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-28 12:05:21 +01:00
Julien Danjou d95a16e837 awful.layout.init: floating is default is none
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-28 12:00:34 +01:00
Gregor Best 8766ffcbd7 awful.widget: fix widget<->tag association
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-28 10:06:38 +01:00
Matthew Wild 798943af31 awful.util: optimize escape/unescape
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-28 10:05:26 +01:00
dcurtis@cs.uiowa.edu f2f7d5c89d awful.layout.suit.vile: import
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-26 15:49:18 +01:00
Julien Danjou d8f20e34fe awful.tag: setters have low and high bounding values
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-26 15:45:23 +01:00
Maxime COSTE 1276c215e7 completion: append / to directories
Here is a small patch that appends a / to directories names in bash completion,
it does not seems to add noticeable overhead, but I only tested it on my
(rather fast) system.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-24 10:46:18 +01:00
Sias Mey cc58b840e6 awful.layout.suit.magnifier: fix typo
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-22 09:49:09 +01:00
Julien Danjou f5c35765d2 awful.layout.suit.magnifier: fix background client geometry
This make sure that we render clients from top to bottom, with
bottom client as the next focused one.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-21 13:45:39 +01:00
Julien Danjou 3aa407b742 awful.layout.suit.magnifier: use the right screen tag
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-19 14:38:17 +01:00
Julien Danjou 7df3a36f3b awful.layout.suit.tile: use the right screen tag
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-19 14:34:38 +01:00
Gregor Best dad33fd0dd awful.widget: fix list_update function
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-18 19:47:56 +01:00
Gregor Best d6655d714e awful.widget/tag: add support for tag icons
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-18 11:46:40 +01:00
Gregor Best 3ecb3babcb awful.tag: make the screen argument works
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-18 11:05:19 +01:00
Espen Wiborg 1749ef672f awful.titlebar: Only use client name in titlebar if set
Signed-off-by: Espen Wiborg <espenhw@grumblesmurf.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-15 15:11:49 +01:00
Julien Danjou 34f6321e8f awful.client: floating.toggle() reset auto detection (FS#429)
This is better than doing nil -> true -> false -> true...
We do nil -> true -> nil -> true.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-14 14:56:28 +01:00
Julien Danjou 6143e58190 awful.completion: add more chars to bash_escape
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-10 14:13:07 +01:00
Julien Danjou 61359d0352 awful.placement: fix name collision
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-09 12:39:27 +01:00
Julien Danjou 8c83287e10 awful.placement: fix floating detection
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-09 11:56:36 +01:00
Julien Danjou 8a82349da3 awful.tag: do not export documentation of local functions
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-08 12:26:12 +01:00
Julien Danjou b78dd5e8b6 awful.placement: do not export documentation of local functions
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-08 12:25:45 +01:00
Julien Danjou f8c9a5e5e5 awful.menu: do not export documentation of local functions
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-08 12:25:27 +01:00
Julien Danjou b69e249503 awful.prompt: do not export documentation of local functions
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-08 12:23:31 +01:00
Julien Danjou fba27a5315 awful.client: do not export documentation of local functions
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-08 12:21:47 +01:00
Julien Danjou 84fad1a9cd awful.client: fix floating detection
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-06 11:12:14 +01:00
Perrin "kAworu" Alexandre e3068bd2b6 use SYSCONFDIR to find bash's completion file.
Signed-off-by: Perrin "kAworu" Alexandre <kaworu(a)kaworu,ch>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-05 18:44:17 +01:00
Julien Danjou 90b1adc0ce awful.prompt: Tab is now reported as Tab
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-05 11:16:08 +01:00
Julien Danjou 5751049745 awful.prompt: add support for Shift+Insert to paste
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-01-04 17:44:37 +01:00
Julien Danjou 99227dff1b awful.button: fix typo in image creation
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-29 18:15:09 +01:00
Julien Danjou 5977408e34 awful.widget: button can take a string as image argument
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-29 18:08:44 +01:00
Julien Danjou ee1e63009b awful.menu: check there's at least one item
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-29 17:20:33 +01:00
Julien Danjou 8aa8b17c75 awful.client: do not ignore focused client if filtered in next()
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-29 11:54:10 +01:00
Julien Danjou adc91aa37a awful.client: check client with filter in history fallback
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-29 11:51:46 +01:00
Maxime COSTE 74188a07df awful.completion: escape spaces
This patch add a bash_escape function for bash completion, at the moment it
only escape spaces, other escaping may easily be added

Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-29 10:14:00 +01:00
Leon Winter 653fa0fadb awful.menu: use bg_image instead of an imagebox
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-19 12:59:44 +01:00
Leon Winter 8199f1c35a awful.menu: change menu height to 16px
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-19 12:39:48 +01:00
Sébastien Gross 8fb0ba2417 awful.completion: remove keywords global variable
* move keywords global variable to generic() last parameter.
  This prevents from having table clash.

  Please udate you configuration according this feature in your
  awful.prompt.run() calls.
  If keywords parameter is missing then no completion would be
  done.

  Before:
   awful.completion.keywords = kw
   awful.prompt.run( [ ... ],
     function(t, p, n) return awful.completion.generic(t, p, n) end,
     [ ... ] )

  Now:
   awful.prompt.run( [ ... ],
     function(t, p, n) return awful.completion.generic(t, p, n, kw) end,
     [ ... ] )

Signed-off-by: Sébastien Gross <seb-awesome@chezwam.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-18 13:55:41 +01:00
Julien Danjou 8193a9cf0c keygrabber: identify release events
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-16 15:02:54 +01:00
Gwenhael Le Moine 25ac879569 suit.fair: restored C version fair layout's behaviour
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-16 13:30:18 +01:00
Julien Danjou 13787c0ba8 luaa: do not replace string.len(), export wlen()
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-15 14:06:22 +01:00
Leon Winter a1489b867b awful.layout.set for non active tag
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-15 10:00:15 +01:00
Gregor Best fc91497d2f awful.mouse: split client.dragtotag into .widget and .border
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-15 09:57:22 +01:00
Maarten Maathuis 02e4be93dc completion, util: Check for io.popen failure.
Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:24 +01:00
Maarten Maathuis 6e199bbd76 client, swindow: switch to a more convient definition of geometry
- In many places i see people correcting for border width and titlebars.
- This new definition is the equivilant of what used to be fullgeometry.
- The internal geometry is now contained to a few functions that few people ever touch.
- This should avoid confusion and make code easier.
- Also protect against several unsigned overflows.

Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:24 +01:00
Maarten Maathuis 709ae7afc7 mouse: prevent resizes of maximized windows
Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:24 +01:00
Maarten Maathuis 630ef295a1 titlebar: resize client when adding/removing so total size remains the same
Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:24 +01:00
Gregor Best f655e8bcf4 awful.mouse: add wibox.move()
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:24 +01:00
Julien Danjou 6816682d42 awful.client: makes fixed size client floating
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:24 +01:00
Gregor Best 27e7b4bc9b awful.mouse/widget: enable drag'n'dropping clients on tags
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:24 +01:00
Gregor Best 0235d995c2 mouse: add object_under_pointer
Signed-off-by: Gregor Best <farhaven@googlemail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
koniu 53d7062917 awful.prompt: improvements to selectall
selectall argument to run():

* renders cursor selection
* is reset when anything but typing occurs
* is now independent from cur_pos == 1

Signed-off-by: koniu <gkusnierz@gmail.com>
2008-12-14 10:28:23 +01:00
Julien Danjou 26da80f90a draw: remove custom markup support
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou 9adf3fd869 draw: remove bg color markup, move to textbox
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
Julien Danjou 8e9f0c8857 draw: remove margin markup, move to textbox widget
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-12-14 10:28:23 +01:00
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
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 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 92fd31b7f5 awful.util: new function file_readable()
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
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 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 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
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
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
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 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
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 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 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
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
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
Julien Danjou e0730d0da8 awful.client: deprecate swap()
Signed-off-by: Julien Danjou <julien@danjou.info>
2008-11-03 23:15:00 +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