Commit Graph

304 Commits

Author SHA1 Message Date
Uli Schlachter a526e0a559 rc.lua: Resize clients via the titlebar
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-10-29 09:46:56 +01:00
dodo 1e4c14d306 tag.screen doesn't exist anymore
awful.tag.getscreen(tag) returns now the tag's screen index

Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-10-26 18:28:52 +02:00
Uli Schlachter a1918b8306 awful.titlebars: Implement
This commits adds the necessary lua code so that we finally can have titlebars.
As the baseline for the needed functionality, the titlebar code in awesome 3.4
and a quick poll on the mailing list were used.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-10-23 20:37:50 +02:00
Uli Schlachter d751141e74 Re-add wallpapers to the themes
The commit "Remove all traces of awsetbg and wallpaper setters" removed these.
This commit adds them back, but they are now applied a little different. The
main reason is that this makes it really easy for the user to ignore the
wallpaper that a theme specifies.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-07-29 16:47:04 +02:00
Uli Schlachter d2f06a196b Unminimize before checking for tag switch (FS#1020)
For a minimized client, c:isvisible() is always false which is not what we want
here. So instead, unminimize the client before checking if it's visible.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-07-09 21:26:00 +02:00
Uli Schlachter 41283f508c rc.lua: Call awful.tag.viewnext/prev with a screen number
This is necessary because of commit fa36bd0a59
"tag.viewidx should take a screen index".

Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-07-06 23:02:54 +02:00
Uli Schlachter 48c6c11d17 awful.rules: Implement callbacks for individual properties
When a property is now set to a function, the function's return value will be
used for the value of the property. The function gets the new client as its only
argument.

There is no property which accepts a function as its value and thus this change
can't break anything (yeah, famous last words...).

This should fix half of FS#1011. Panels now don't get focused by awful.rules.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-07-06 17:30:35 +02:00
Arvydas Sidorenko ce19cabae3 Fixed bug with global `tags` in rc.lua
awful.wibox.tasklist was overwritting `tags` variable breaking all the
functionality which uses it.

Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-06-16 17:37:30 +02:00
Arvydas Sidorenko b18b504fdf Ported awful.layout.suit to lua 5.2
Tested with lua 5.1: all good

Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-06-16 17:37:30 +02:00
Arvydas Sidorenko c3ebfd99fc Ported awful.widget to lua 5.2
Tested with lua 5.1: all good

Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-06-16 17:37:30 +02:00
Arvydas Sidorenko 61ff9ce2b7 Ported awful to lua 5.2
Tested with lua 5.1: all good

Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
2012-06-16 17:37:30 +02:00
Arvydas Sidorenko 3f5eaf9c1b Ported wibox to lua 5.2
Tested with lua 5.1: all good

Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
2012-06-16 17:37:30 +02:00
Arvydas Sidorenko a75112160f Ported menubar to lua 5.2
Tested with lua 5.1: all good

Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
2012-06-16 17:37:30 +02:00
Arvydas Sidorenko 26797ab494 Ported naughty to lua 5.2
Tested on lua 5.1: all good

Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
2012-06-16 17:37:30 +02:00
Arvydas Sidorenko 0bbd9eac0a Beatiful module ported to lua 5.2
Tested on Lua 5.1: all good

Signed-off-by: Arvydas Sidorenko <asido4@gmail.com>
2012-06-16 17:37:30 +02:00
Alexander Yakushev 60cf963bce menubar: Introduce menubar extension
Menubar is a dmenu-like applications menu for Awesome

Signed-off-by: Alexander Yakushev <yakushev.alex@gmail.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-03-09 13:43:26 +01:00
Anurag Priyam 1e4bf83d3b awful.menu: always enable keyboard navigation
I don't see why people would not want keyboard-enabled-menu by default.
Without it, you can't even use 'Escape' to quit the menu or press 'Enter' to
execute an entry.  But instead of just enabling keyboard support by default, we
remove the option of disabling keyboard support altogether, which also
simplifies the implementation a bit.

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
2012-03-01 17:03:47 +01:00
Uli Schlachter 59d4e00b8b Signal runtime errors via a naughty popup
Whenever awesome's C code calls into lua via a protected call, the debug::error
signal is emitted on errors. We now use this to give naughty popups for every
single error that happens. This should help people to notice errors easier.

The only exception are mouse and key grabbers and config loading, those don't go
through debug::error. I guess that means that the grabbers need to be hooked up
to debug::error. :-)

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-10-23 17:36:56 +02:00
Uli Schlachter 2354c6a623 Signal config errors via a naughty popup
If loading of any config file fails, awesome will now remember the error message
and make it available to lua. The default config is modified to open a naughty
popup on errors.

This should help all those people who modify their config and then wonder why
there change is ignored, not noticing awesome's error message on stderr.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-10-23 17:36:19 +02:00
Julien Danjou c8a8672973 Use awesome.conffile in menu
Signed-off-by: Julien Danjou <julien@danjou.info>
2011-09-17 17:24:50 +02:00
Uli Schlachter d3ba8aa072 Clarify the mod+n keybinding
Minimized clients can't have the input focus, so this key binding can't be used
for unminimizing them. Hopefully this clarifies the reason why.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-04-28 20:14:11 +02:00
Anurag Priyam e3e3fe70ef awesomerc: minimize/restore client on a left click in the tasklist entry
In the bundled rc.lua, mouse button 1 on a tasklist entry was configured to
bring the corresponding client to focus. Modify it to minimize the client if
already focussed.

Such (default) behavior seems more natural.

Signed-off-by: Anurag Priyam <anurag08priyam@gmail.com>
Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-04-28 20:12:43 +02:00
Uli Schlachter da9e4a52df Bind awful.client.restore to mod+ctrl+n
Signed-off-by: Uli Schlachter <psychon@znc.in>
2011-02-19 22:26:21 +01: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 742c0dead0 Systray: Fix
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-06 15:38:44 +02:00
Uli Schlachter 9b40f19f5c rc.lua: Port to new widget layouts
Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-10-06 14:32:41 +02:00
Uli Schlachter 8497e6ade2 rc.lua: Call launcher() with a string
When awful.widget.launcher() is called with a string, it interprets it as the
path to an image and tries to load it. So why should we do the work of calling
image() ourselves if it can be done for us? ;)

Signed-off-by: Uli Schlachter <psychon@znc.in>
2010-09-29 13:26:09 +02:00
Julien Danjou 6d332f07a0 lua{class,object}: rename signals functions
I knew this was wrong at the beginning, f*ck.

Signed-off-by: Julien Danjou <julien@danjou.info>
2010-08-25 20:28:20 +02:00
Sergey Mironov 81ce9f7210 awful.menu: Change menu:show() args set
Signed-off-by: Julien Danjou <julien@danjou.info>
2010-04-14 09:38:35 +02:00
Adrian C. (anrxc) 9f056716b9 awesomerc: add Mod4+t to set client on-Top
Signed-off-by: Adrian C. (anrxc) <anrxc@sysphere.org>
Signed-off-by: Julien Danjou <julien@danjou.info>
2010-03-04 09:33:07 +01:00
Uli Schlachter 3d887f09c6 Make it easier to change the default layout
In older versions of awesome, the first entry in the layouts table was the
default layout. Currently it's always the floating layout.

With this patch the default is again the first entry in the layouts table.  At
the same time, floating is moved to be the first entry, so this patch doesn't
change any behavior at all.

Signed-off-by: Uli Schlachter <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-12-22 12:47:26 +01:00
Julien Danjou 6ee5122462 client: remove redraw()
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-11-09 13:02:45 +01:00
Lukas Hrazky 4685023a28 update rc.lua to new widget layouts
Signed-off-by: Lukas Hrazky <lukkash@email.cz>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-26 11:07:44 +01:00
Julien Danjou 371ee3e8cc titlebar: remove
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-10-20 20:42:05 +02:00
Julien Danjou 67e5346956 Revert "beautiful: init default theme by default" and "awesomerc: stop handling beautiful"
This reverts commit 42c47eecce.
This reverts commit 4823a12541.

Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-28 13:43:49 +02:00
Julien Danjou 1bf296dfce awesomerc: only uses placement when no hints (FS#637)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-23 10:07:02 +02:00
Julien Danjou 295f712552 awesomerc: use keycode for tag bindings (FS#627)
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-18 11:41:55 +02:00
Julien Danjou 36d9178917 awesomerc: enable smart placement
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-18 11:35:59 +02:00
Julien Danjou 68148167ef awesomerc: fix default menu
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-08 10:23:18 +02:00
Julien Danjou 769d2899ac awesomerc: remove move to mouse screen code on manage
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-09-04 13:40:28 +02:00
Julien Danjou 8969bb181a awesomerc: fix titlebar enabled
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-31 13:52:15 +02:00
Julien Danjou efca7dc9e7 awesomerc: split menu creation out of wibox
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-31 11:52:49 +02:00
koniu 05e044ba8e awesomerc: use awful.tag.viewtoggle
Signed-off-by: koniu <gkusnierz@gmail.com>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-31 10:44:34 +02:00
Gregor Best 3f259d0ed2 awesomerc: fix layout for promptbox
Signed-off-by: Gregor Best <gbe@intepi.net>
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-27 17:07:36 +02:00
Julien Danjou f3e527efe7 awesomerc: add Mod4+n to minimize
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 14:56:17 +02:00
Julien Danjou b91ebd1947 awesomerc: remove bad comment
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 14:54:11 +02:00
Julien Danjou 8ee740dcfe awesomerc: fix firefox example
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-25 11:09:12 +02:00
Julien Danjou 4d4bdb3100 awesomerc: use awful.rules
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-24 16:27:35 +02:00
Julien Danjou 4b311371f1 Revert "awesomerc: add placement by default"
This reverts commit 2cefa5e9b2.
2009-08-22 17:29:22 +02:00
Julien Danjou 2cefa5e9b2 awesomerc: add placement by default
Signed-off-by: Julien Danjou <julien@danjou.info>
2009-08-21 17:19:54 +02:00