Commit Graph

314 Commits

Author SHA1 Message Date
Daniel Hahler fac9b66592 Add and improve some comments to awesomerc.lua 2014-03-29 09:55:43 +01:00
Uli Schlachter 3cbdc2a79f Use awful.layout.layouts for implementing optional parameters
Signed-off-by: Uli Schlachter <psychon@znc.in>
2014-03-28 13:29:16 +01:00
Emmanuel Lepage Vallee bfc6065ad9 Make 'layouts' global 2014-03-28 13:24:04 +01:00
Uli Schlachter b4c83d0e70 Use signals on classes instead of instances where appropriate
Signed-off-by: Uli Schlachter <psychon@znc.in>
2014-03-23 19:48:07 +01:00
Uli Schlachter de46670c8c rc.lua: Raise all clients by default (regression, FS#1234)
Signed-off-by: Uli Schlachter <psychon@znc.in>
2014-03-23 18:34:38 +01:00
Uli Schlachter fed803a6bc client manage signal: Remove startup argument
We now have awesome.startup which does the same thing in better.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2014-03-16 20:15:02 +01:00
Rocco Aliberti 843a36aa6e awesomerc: Fix set menu clients width (FS#1200)
Signed-off-by: Uli Schlachter <psychon@znc.in>
2014-01-11 21:26:33 +01:00
Alexander Kondratev 81b5e6e54b fixed #1184. Calling movetotag method throw an error on a blank screen
Signed-off-by: Uli Schlachter <psychon@znc.in>
2013-09-30 12:58:50 +02:00
Emmanuel Lepage Vallee e7912fc2a8 Fix mod4+[1-9] in default rc.lua
The old code had flaws:
* If the tag chnaged screen, the code was unstable.
* If awful.tag.del was used, then it displayed an error
* If tags were added later, the keyboard shortcut were unavailable
2013-03-23 21:25:44 +01:00
Uli Schlachter 9d5e2a981a rc.lua: Fix titlebar button events (FS#1116)
Due to some layout changes, the client title widget is no longer assigned all
the remaining space. To work around this, we wrap the widget in a flex layout
which means that it asks for all the available space. This way, moving via the
titlebar works again.

Additionally, these button events are now also assigned to the client's icon
widget. No idea why this wasn't done before...

Signed-off-by: Uli Schlachter <psychon@znc.in>
2013-03-14 20:14:43 +01:00
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