naughty: fails after using timeout = 0 ?

2009-02-11 Thread Perry Hargrave
I've two modules mocscroll.lua and calendar.lua (attached, with rc.lua). If I set the timeout for the calendar notification to zero, and then enter the datewidget (which creates the calendar notification) then it breaks my mocp widget (text stops scrolling). Having the timeout at one creates no

Re: naughty: fails after using timeout = 0 ?

2009-02-12 Thread Perry Hargrave
On 02/12/2009 12:08 AM, Julien Danjou wrote: At 1234425102 time_t, Perry Hargrave wrote: Anyone can help debug this? I'd appreciate it. This is already fixed in git/master. yeah, i just built git/master and it works I'm going to stop sending things to mailing list :S -- To unsubscribe

Re: floating status VBoxSDL

2009-02-24 Thread Perry Hargrave
This is odd, I too launch VBoxSDL but it doesn't float here.. Anyways, for your problem, you could do something like: if c.name:match(VirtualBox) then awful.client.floating.set(c,false) end In hooks manage, I would test this before and after floating or tag mapping just to see if something

Re: wmii layout

2009-02-25 Thread Perry Hargrave
So far, I'm enjoying awesome a lot but I do miss being able to select left, right, up and down via h-j-k-l. You just need to change the keybinding behavior to use awful.client.focus.bydirection(direction) .bydirection expects the codes 'Left', 'Right', 'Up', 'Down' So something like:

[patch] set urgent flag manually

2009-03-19 Thread Perry Hargrave
I'm sending this to users because I'm not sure what the interest really is, it came up today in IRC that if you're afk and say your focused app requests urgent, but is focused while you're away, there is no WM indication left for you that the app wanted focus. (Maybe I am not stating the need

Re: shifty and 3.4rc

2009-09-29 Thread Perry Hargrave
On Mon, Sep 28, 2009 at 02:25:18AM +0100, koniu wrote: On Sat, Sep 26, 2009 at 19:18, Andreas Klöckner li...@informa.tiker.net wrote: shifty doesn't appear to work with 3.4rc1, i.e. I get an unresponsive screen that says AWESOME in the middle. The .xsession-errors file has some warnings

Re: Beginner Needs a Pointer

2009-10-05 Thread Perry Hargrave
We're talking about Lua, so first, learn Lua. Don't want to? Do not use awesome 3 and stop reading right now. i updated this text, hopefully its a bit less exclusionary..

Re: Shifty behaving odd

2009-10-13 Thread Perry Hargrave
On Mon, Oct 12, 2009 at 12:00:41AM +0200, Gabriel Fornaeus wrote: Hi! I just upgraded my awesome to rc4 and now shifty behaves very odd. Or the taglist, not quite sure. Anyways, the taglist is there but it only uses bg_normal for colors, for everything and so does shifty. Am I missing

Re: Awesome 3.4

2009-10-24 Thread Perry Hargrave
On Fri, Oct 23, 2009 at 10:28:59PM +0200, Jérôme M. Berger wrote: - How can I set the default layout for my tags? Right now it starts in floating layout, which is about the worst possible choice (if I wanted a floating wm I wouldn't be using awesome). please see numerous other mail

Re: Awesome, the horror of switching windows

2009-12-09 Thread Perry Hargrave
At least the alt+tab is easy: awful.key({ modkey }, Tab, function () awful.client.focus.history.previous() if client.focus then client.focus:raise() end end), hth On Wed, 09 Dec 2009 09:26:19 +0100 Thomas Constans thomas.const...@opendoor.fr wrote: Le mardi

Re: awesome 3.4.3 and shifty interactive add,del,rename not work

2010-01-26 Thread Perry Hargrave
On Tue, Jan 26, 2010 at 07:45:12PM +0300, Ilya Martinov wrote: Hi all... Upgrade to awesome 3.4.3 and get some trouble with shifty. If i describe tag in rc.lua everything works fine, but if i create new tag then i can not specify tag name, it's just remains empty =( function

Re: awesome 3.4.3 and shifty interactive add,del,rename not work

2010-01-29 Thread Perry Hargrave
On Fri, Jan 29, 2010 at 07:28:06PM +0100, The Sighter wrote: On Wed, Jan 27, 2010 at 03:18:51PM +0300, Ilya Martinov wrote: On Tue, Jan 26, 2010 at 02:06:26PM -0800, Perry Hargrave wrote: On Tue, Jan 26, 2010 at 07:45:12PM +0300, Ilya Martinov wrote: Hi all... Upgrade

Re: awesome starts with floating mode, can I change that

2010-01-29 Thread Perry Hargrave
On Fri, Jan 29, 2010 at 05:59:57PM -0500, Yuliang Wang wrote: For example, when I start a terminal, it only occupies a portion of the top left part of the display, and it is the floating mode. Can reset the default to maximize. I didn't find that option in rc.lua. -- Sincerely, Yuliang

Re: Stop click propagation

2010-02-10 Thread Perry Hargrave
On Wed, Feb 10, 2010 at 09:42:00AM +0100, Julien Danjou wrote: At 1265746505 time_t, James Campos wrote: then right-clicks do not bring up the client menu; is there any way to use this to accomplish my goal? If not, then I'd like to make a feature request - change the awful.button api to

Re: Raise minimized client

2010-02-23 Thread Perry Hargrave
On Tue, Feb 23, 2010 at 12:25:01PM +0530, barkat wrote: Hi, by Mod + n focus client get minimized ok , but no way to maximize or raise client by keyboard shortcut , using mouse is only way seems. Is there already a keyboard shortcut or a way to add one. Search wiki but not

Re: Launching Mutt in term window

2010-02-23 Thread Perry Hargrave
On Tue, Feb 23, 2010 at 09:01:40PM -0500, Gerry LaMontagne wrote: I've been experiencing an annoying problem with mutt. I launch via a keypress combo. I use roxterm on one computer and I have urxvt on an and what is said combo? eee- both exhibit the same behavior. The behavior is difficult

Re: Launching client with no focus (in background)

2010-02-25 Thread Perry Hargrave
On Thu, Feb 25, 2010 at 01:33:13AM +0100, Sachiel wrote: On Thu, Feb 25, 2010 at 12:19 AM, epinull epin...@gmail.com wrote: I've tried with: properties = { focus:lower()} and: callback = {lower} callback should be a function. sth like, callback = function (c) c:lower()

Re: Shifty installation

2010-03-10 Thread Perry Hargrave
On Wed, Mar 10, 2010 at 10:59:10PM +0100, Cédric Macquat wrote: On Mon, Mar 08, 2010 at 08:12:29AM -0800, Perry Hargrave wrote: Here is the equivalent code for shifty'ish keybindings: Ok, I have changed. what version of awesome are you using? At the moment I use 3.4.4. If you

Re: tags and dualscreen

2010-04-08 Thread Perry Hargrave
On Thu, Apr 08, 2010 at 06:24:19PM +0200, Gabriel Fornaeus wrote: This is actually a feature. You can move windows back and forth between your screens with modkey+o in the default config. Not sharing tags is great, since you can easily view different tags on each monitor and switch tags on one

Re: Questions about using 2 monitors

2011-05-06 Thread Perry Hargrave
On Fri, May 6, 2011 at 2:29 PM, Gabriel Chavez gaboma...@gmail.com wrote: Can you please refer me to a tutorial or something? I've been trying to do this but so far I always end up with the same tags in every monitor. the _same_ tags or tags with the same name? From the default rc.lua: tags =

Re: Dinamically created awesome menu

2011-05-10 Thread Perry Hargrave
On Mon, May 9, 2011 at 9:00 AM, Zsolt Udvari udvzs...@gmail.com wrote: Hello! I'm using fbpanel [1] to this. Handicap of awesome-menu: can't change while awesome running, awesome must restart to change (as I know). That is definitely not true. Whatever function you use to generate menus is

Re: Dinamically created awesome menu

2011-05-11 Thread Perry Hargrave
On Wed, May 11, 2011 at 12:01 AM, Zsolt Udvari udvzs...@gmail.com wrote: That is definitely not true. Whatever function you use to generate menus is called when the menu is opened. And if you've created a menu (e.g. main menu), and you will install an application and want insert into main

Re: Dinamically created awesome menu

2011-05-11 Thread Perry Hargrave
On Wed, May 11, 2011 at 10:12 AM, Perry Hargrave resix...@gmail.com wrote: On Wed, May 11, 2011 at 12:01 AM, Zsolt Udvari udvzs...@gmail.com wrote: That is definitely not true. Whatever function you use to generate menus is called when the menu is opened. And if you've created a menu (e.g

Re: Is there a working rc.lua for shifty?

2011-05-23 Thread Perry Hargrave
On Mon, May 23, 2011 at 3:59 AM, Yussi uc.dev.n...@googlemail.com wrote: On 23/05/11 11:35, Marcus Klemm wrote: Last i checked the Shifty configs from the wiki were outdated, if you go step by step from the tutorial, and compare to koniu and bionic's configs, Or you could just get them from my

Re: Shortcut keys

2011-06-15 Thread Perry Hargrave
On Wed, Jun 15, 2011 at 10:05 AM, Peter Schwede peter.schw...@gmx.net wrote: how does Awesome's lua.rc call the left Alt-Key and how are PgDn and PgUp named? I need them for global shortcuts to control my audio player. pageup == Prior pagedown == Next -- p -- To unsubscribe, send mail to

Re: Lock window layout

2011-10-14 Thread Perry Hargrave
On Fri, Oct 14, 2011 at 8:49 AM, Derek Thomas derekctho...@gmail.com wrote: Is it possible to lock a window layout for a tag so that new windows introduced to the tag float and don't mess things up?  I know that some dialog boxes automatically come up as floats, but I don't know how to go

Shifty and Revelation

2011-10-20 Thread Perry Hargrave
Shifty is now @ https://github.com/bioe007/awesome-shifty Revelation @ https://github.com/bioe007/awesome-revelation Updates to the wiki are pending. Is there an easy way to push a README.md as a wiki page? Or maybe just link to gh readme... I turned them both into lua modules so it's easier

Re: Awesome screencast, part 2

2011-10-20 Thread Perry Hargrave
On Oct 20, 2011 6:07 PM, Alexander Yakushev yakushev.a...@gmail.com wrote: Good evening, dear community, I have just released the second part of Awesome 101 screencast after such a long break (shame on me!). that is Awesome Nice job Alexander! -- Perry

Re: can't resize tiled windows

2011-12-08 Thread Perry Hargrave
On Thu, Dec 8, 2011 at 8:59 AM, Nick Demou nde...@gmail.com wrote: On Thu, Dec 8, 2011 at 6:20 PM, Rémi Vanicat vani...@debian.org wrote: Nick Demou nde...@gmail.com writes: [...] they are tiled two at the left side and two at the right side of the screen. Tried mod4+ctrl+H/L but I can't

Re: Awesome wm in Kindle Touch!

2012-01-18 Thread Perry Hargrave
Legend...ary*!* Think they are hiring? :) -- Perry

Re: Awesome wm in Kindle Touch!

2012-01-19 Thread Perry Hargrave
On Jan 19, 2012 8:48 AM, Julien Danjou jul...@danjou.info wrote: On Thu, Jan 19 2012, Kan-Ru Chen wrote: Yes, they are in the same directory of rc.lua: Hum, but they're not provided on the web site? They come extracted from the device, don't they? -- Julien Danjou I think the license is

Re: Awesome wm in Kindle Touch!

2012-01-20 Thread Perry Hargrave
On Jan 20, 2012 1:02 AM, Julien Danjou jul...@danjou.info wrote: On Thu, Jan 19 2012, Perry Hargrave wrote: I think the license is different. But if they use awful for example, or maybe other parts, I'm not sure the license can be different. This is why I'm asking. -- Julien *Danjou

Re: Awesome wm in Kindle Touch!

2012-01-21 Thread Perry Hargrave
On Jan 20, 2012 1:44 PM, Julien Danjou jul...@danjou.info wrote: On Fri, Jan 20 2012, Perry Hargrave wrote: But if they made custom modules that only use awful they don't have to make that available, right? Since awful is GPL, I *think* they would have to. Sony isn't releasing

Re: Warning with obvious widget

2012-01-24 Thread Perry Hargrave
2012/1/24 Tomás Solar Castro tso...@lavabit.com: El 24/01/12 15:13, Robert David escribió: local function update()   local d = awful.util.pread(acpi -t)   local temp = { }   for t in d:gmatch(Thermal %d+: %w+, (%d+.?%d*) degrees) do      table.insert(temp, t)   end I think whatever is

Re: Missing line numbers and more weirdness with vim

2012-01-26 Thread Perry Hargrave
On Jan 26, 2012 8:06 AM, Marco net...@lavabit.com wrote: I face a problem with vim since I use awesome. Sometimes the displayed text is wrong (for instance when scrolling, the wrong part of the file is displayed), marking the text then changes to the correct one. However, part of the line

Re: Missing line numbers and more weirdness with vim

2012-01-26 Thread Perry Hargrave
On Jan 26, 2012 7:50 PM, Marco net...@lavabit.com wrote: On 2012-01-27 Anurag Priyam anurag08pri...@gmail.com wrote: On Fri, Jan 27, 2012 at 9:05 AM, Perry Hargrave resix...@gmail.com wrote: Do you get the problem with vim -u NONE Or with gvim? I rarely use gvim. A short

Re: Missing line numbers and more weirdness with vim

2012-01-26 Thread Perry Hargrave
Also, does ctrl+L do anything? Does anything trigger the behavior? Like resizing window, merging tags or toggle float. Iirc there used to be a need for 'shopt checkwinsize' But I think that was fixed some time ago -- Perry

Re: Multi monitor for presentations

2012-02-07 Thread Perry Hargrave
On Tue, Feb 7, 2012 at 12:05 PM, Ondřej Grover ondrej.gro...@gmail.com wrote: But then one day I try to plug in a monitor when I'm about to give a presentation. I prepared a special tag for it. Suddenly, all windows stuff up on one, new workspace (Shifty's fault). OK, but even if I retag my

Re: Multi monitor for presentations

2012-02-07 Thread Perry Hargrave
On Tue, Feb 7, 2012 at 2:04 PM, Dariusz Luksza dariusz.luk...@gmail.com wrote: On 02/07/12 22:53, Perry Hargrave wrote: Why can't you on VGA have tag[1].name = 'Present', open OOo there and leave tag[1].name = 'notes' on LVDS? Then just move the apps to the different tags as desired. If you

Re: shifty: re-evaluate window title

2012-02-22 Thread Perry Hargrave
On Feb 16, 2012 1:42 PM, Andre Klärner kan...@ak-online.be wrote: Hi Guys, could anyone of you give me a hint how to get Shifty to re-check the windows titles when they change? I got a bunch of terminals at work, all going to some gateway-hosts and from there to a really big multiverse of

Re: Shortcut keys

2012-03-05 Thread Perry Hargrave
I am thinking you are adding to the clientkeys table. Add the binding to the root keys table. -- Hth, perry

Re: How to execute a program when shutting the computer down?

2012-04-11 Thread Perry Hargrave
2012/4/11 Clément DÉMOULINS clem...@archivel.fr: The guy who shares computer with me uses KDE, and he uses basically the same .xinitrc (except replace `awesome` with `startkde`). KDE handles this correctly---either just logging off or shutting down in KDE, his volume level would be saved. I

Re: Remove the floating symbol from tasklist

2012-04-18 Thread Perry Hargrave
On Apr 17, 2012 5:59 PM, Abhijeet Rastogi abhijeet.1...@gmail.com wrote: Thanks. Commenting the line 38 of /usr/share/awesome/themes/default/theme.lua did the thing. You would be much better served to copy the theme to your home configuration directory and change the path in rc.lua. This way

Re: Question on settings programs to float

2012-04-23 Thread Perry Hargrave
On Apr 23, 2012 6:48 PM, Adam Jimerson vend...@gmail.com wrote: Hello all I have am having an issue when setting a client to default to float in my rc.lua file, in my configuration file's rule section I have the following: { rule = { class = ktp-contactlist }, properties = { tag =

Re: shifty - tab creation rules - creating one tag on each screen automatically

2012-06-18 Thread Perry Hargrave
On Jun 18, 2012 4:28 AM, Rainer M Krug r.m.k...@gmail.com wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi I have some applications, for which I would like to have a tag of the same name on each screen (I have two screens). Is this possible? At the moment, when I start the program,

Shifty and Revelation

2013-01-30 Thread Perry Hargrave
I will no longer be maintaining the Shifty extension. https://github.com/bioe007/awesome-shifty I appreciate those who have helped with pull requests and such but I feel shifty has been obsolete for some time now. I will also no longer be maintaining the Revelation extension.

Re: Shifty and Revelation

2013-02-04 Thread Perry Hargrave
On Thu, Jan 31, 2013 at 10:46 AM, Yussi uc.dev.n...@gmail.com wrote: Shifty had some nice fine tuning to it that I miss, however for the most part, I achieve the same results with the normal config, by doing something like this, I have some functions to handle tag creation/rename/deletion in

[Patch] associate taglist widget textboxes to tags

2009-02-03 Thread Perry Hargrave
: gettagbox(t) returns a reference to a tags textbox on the taglist Signed-off-by: perry hargrave bioe007 perry.hargr...@gmail.com --- lib/awful/widget.lua.in |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/lib/awful/widget.lua.in b/lib/awful/widget.lua.in index 0b9107b

Re: [Patch] associate taglist widget textboxes to tags

2009-02-05 Thread Perry Hargrave
I needed to use afwul.prompt.run and give it the currently selected tag's taglist textbox. I'm curious why. ;-) for dynamic tagging, this prompt is used to rename the tag (using shifty.lua) Not so sure, but I might be wrong. indeed you are correct! Much easier and better than my

Re: [awesome bugs] #640 - focus follows mouse with dualhead

2009-09-25 Thread Perry Hargrave
Sloppy focus only change focus when passing the mouse over a client. It does not care about screen. Unless you have some real proof of what you consider has a bug, I'll close that report. maybe this should be a feature request then, because it would be cool if you had the mouse on screen 1

[PATCH] set default layout in rc.lua

2009-10-07 Thread Perry Hargrave
awful.tag constructors can take a layout argument, so I think its better to set this as a tiled layout (since awesome is a tiling wm) than leaving it nil... hope this works.. -bioe From b2b23eaf2bb50c43a7cf3170291174f43766a9e2 Mon Sep 17 00:00:00 2001 From: perry perry.hargr...@gmail.com Date:

Re: [PATCH] set default layout in rc.lua

2009-10-08 Thread Perry Hargrave
On Thu, Oct 08, 2009 at 02:45:17PM +0200, Harald Braumann wrote: On Thu, 8 Oct 2009 00:53:50 +0200 Mikael Eriksson mikael_eriks...@miffe.org wrote: On Wed, Oct 07, 2009 at 10:50:49AM -0700, Perry Hargrave wrote: -tags[s] = awful.tag({ 1, 2, 3, 4, 5, 6, 7, 8, 9 }, s) +tags[s

Re: Bug in task switch

2009-11-23 Thread Perry Hargrave
Uli, I see this too and: git revert 7575f64993c708c77597dacf28943a5cc37c0bf7 fixes the problem. On Fri, Nov 20, 2009 at 07:51:43PM +0100, Uli Schlachter wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Julien Danjou wrote: At 1258741624 time_t, Uli Schlachter wrote: So, is this

Re: [Marketing] Awesome, Wikipedia Deletion, Arch Linux Magazine

2010-03-15 Thread Perry Hargrave
On Sat, Mar 13, 2010 at 05:50:23PM -0500, Andrei Thorp wrote: Hello, So as many of you know, Awesome's Wikipedia page was deleted[1] for really dubious reasons. But most notably, it has been very difficult to find a reputable source online that has reviewed Awesome in any way. Most press

Re: [Marketing] Awesome, Wikipedia Deletion, Arch Linux Magazine

2010-03-15 Thread Perry Hargrave
gah, in my haste i did not realize that titlebars are maintained in awesome released branches. my apologies -perry -- To unsubscribe, send mail to awesome-devel-unsubscr...@naquadah.org.

Re: [PATCH] Fix for shifty tags on two X screens

2010-04-27 Thread Perry Hargrave
On Tue, Apr 27, 2010 at 01:45:11PM -0400, Andrei Thorp wrote: On Mon, Apr 26, 2010 at 3:11 AM, Venefyxatu venefyx...@gmail.com wrote: Hi, I hope this is the correct way/format for submitting a shifty patch - if not, feel free to point out the errors of my ways :-) When using shifty on

Re: [PATCH] Fix for shifty tags on two X screens

2010-04-28 Thread Perry Hargrave
On Wed, Apr 28, 2010 at 02:29:25PM +0200, Erik H. wrote: On Tue, Apr 27, 2010 at 15:25:13 -0700, Perry Hargrave wrote: On Tue, Apr 27, 2010 at 01:45:11PM -0400, Andrei Thorp wrote: On Mon, Apr 26, 2010 at 3:11 AM, Venefyxatu venefyx...@gmail.com wrote: Hi, I hope

Re: [PATCH 3/9] awful.tag: rename() function allows tags names to be changed

2010-05-01 Thread Perry Hargrave
On Sat, May 01, 2010 at 08:42:56AM +0200, Uli Schlachter wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Am 01.05.2010 01:04, perry wrote: [...] +function() +target_tag:emit_signal(property::name) +end +)

Re: [PATCH 1/9] awful.tag: create 'add' function

2010-05-01 Thread Perry Hargrave
On Sat, May 01, 2010 at 08:58:29AM +0200, Uli Schlachter wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Am 01.05.2010 01:04, perry wrote: +--- Add a tag +-- @param name The tag name, a string +-- @param properties The tags properties, a table +-- @return The created tag

Re: [PATCH 7/9] awful.tag: new function move_screen() moves a tag to another screen

2010-05-01 Thread Perry Hargrave
On Sat, May 01, 2010 at 08:50:40AM +0200, Uli Schlachter wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Am 01.05.2010 01:04, perry wrote: [...] +capi.screen[origin_screen]:emit_signal(tag::history::update) +capi.screen[target_screen]:emit_signal(tag::history::update) i

Awful dynamic tagging functions, rev II

2010-05-28 Thread Perry Hargrave
A second stab at some functions to ease dynamic tagging. I'm still not sure the best way to tackle Uli's complaints about my last hack on a tag.rename function - so I'm staying a rewrite of that for now. Thought sending this could elucidate some more comments though. Especially I wonder what

[PATCH 1/5] tag.lua: add() create tags with full table of properties

2010-05-28 Thread Perry Hargrave
tag.add(name, props): make tags and pass a table of properties to apply to it tag.new: modified to use add() instead of calling capi.tag Signed-off-by: Perry Hargrave perry.hargr...@gmail.com --- lib/awful/tag.lua.in | 27 +++ 1 files changed, 23 insertions

[PATCH 2/5] tag.lua: delete() intelligently delete tags

2010-05-28 Thread Perry Hargrave
tag.delete(t, fb): If there are 0 clients and only 1 tag, then don't delete the tag. Delete a tag 't' if there are no clients exclusively assigned to it. Signed-off-by: Perry Hargrave perry.hargr...@gmail.com --- lib/awful/tag.lua.in | 34 ++ 1 files

[PATCH 3/5] tag.lua: move() re-index tags

2010-05-28 Thread Perry Hargrave
tag.move(i, t): move tag 't', or tag.selected(), to index 'i' in the current screen's tags table. Signed-off-by: Perry Hargrave perry.hargr...@gmail.com --- lib/awful/tag.lua.in | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/lib/awful

[PATCH 4/5] tag.lua: getidx() returns index of tag

2010-05-28 Thread Perry Hargrave
tag.getidx(t): Return the index of 't' in the screen[]:tags() table. Return 'nil' if 't' is not found. Signed-off-by: Perry Hargrave perry.hargr...@gmail.com --- lib/awful/tag.lua.in | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/lib/awful

[PATCH 5/5] tag.lua: move_screen() moves tag to another screen

2010-05-28 Thread Perry Hargrave
then the stickied client is moved to the target screen as well. Signed-off-by: Perry Hargrave perry.hargr...@gmail.com --- lib/awful/tag.lua.in | 40 1 files changed, 40 insertions(+), 0 deletions(-) diff --git a/lib/awful/tag.lua.in b/lib/awful/tag.lua.in

Re: Awful dynamic tagging functions, rev II

2010-05-29 Thread Perry Hargrave
On Sat, May 29, 2010 at 08:48:24AM +0200, Uli Schlachter wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Am 29.05.2010 01:39, Perry Hargrave wrote: A second stab at some functions to ease dynamic tagging. I'm still not sure the best way to tackle Uli's complaints about my last

Re: [PATCH 2/5] tag.lua: delete() intelligently delete tags

2010-05-29 Thread Perry Hargrave
On Sat, May 29, 2010 at 08:31:40AM +0200, Uli Schlachter wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Am 29.05.2010 01:39, Perry Hargrave wrote: tag.delete(t, fb): If there are 0 clients and only 1 tag, then don't delete the tag. Delete a tag 't

Re: [PATCH 2/5] tag.lua: delete() intelligently delete tags

2010-05-29 Thread Perry Hargrave
On Sat, May 29, 2010 at 08:46:31AM +0200, Uli Schlachter wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Am 29.05.2010 08:31, Uli Schlachter wrote: It's nice to clean up properly, but AFAIK target_tag.screen = nil already removes all clients from the affected tag. I'm not sure if

Re: [PATCH 2/5] tag.lua: delete() intelligently delete tags

2010-05-29 Thread Perry Hargrave
On Sat, May 29, 2010 at 08:31:40AM +0200, Uli Schlachter wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Am 29.05.2010 01:39, Perry Hargrave wrote: tag.delete(t, fb): If there are 0 clients and only 1 tag, then don't delete the tag. It might be necessary to check

Re: [PATCH 5/5] tag.lua: move_screen() moves tag to another screen

2010-05-29 Thread Perry Hargrave
On Sat, May 29, 2010 at 08:44:32AM +0200, Uli Schlachter wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 @jd: Please look below Am 29.05.2010 01:39, Perry Hargrave wrote: tag.move_screen(s, t, ft): +if #o_clients 0 then That if serves no purpose, the for loop can handle

Re: [PATCH 5/5] tag.lua: move_screen() moves tag to another screen

2010-05-29 Thread Perry Hargrave
On Sat, May 29, 2010 at 05:08:21PM +0200, Uli Schlachter wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Am 29.05.2010 10:57, Perry Hargrave wrote: if its done after setting origin_tag.screen = nil then we know oscr_tags[1] ~= origin_tag no? No The garbage

Re: [PATCH 5/5] tag.lua: move_screen() moves tag to another screen

2010-05-31 Thread Perry Hargrave
On Sun, May 30, 2010 at 12:24:34PM +0200, Uli Schlachter wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Am 29.05.2010 20:01, Perry Hargrave wrote: +--- Find a suitable fallback tag. +-- @param screen The screen number to look for a tag on. [mouse.screen] +-- @param target

[PATCH] tag.lua: check name argument to add() is valid

2010-05-31 Thread Perry Hargrave
Signed-off-by: Perry Hargrave perry.hargr...@gmail.com --- lib/awful/tag.lua.in |8 +++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/lib/awful/tag.lua.in b/lib/awful/tag.lua.in index 16bd54b..3563c26 100644 --- a/lib/awful/tag.lua.in +++ b/lib/awful/tag.lua.in @@ -33,8

Re: [PATCH 2/5] tag.lua: delete() intelligently delete tags

2010-06-01 Thread Perry Hargrave
history.restore() in my previous set but this time I only call it if no tag is currently visible. Which I think is just 'doing the right thing' -- perry From 7bc97b5fbe9a822e75685012d92aa93b1b7ca6fd Mon Sep 17 00:00:00 2001 From: Perry Hargrave perry.hargr...@gmail.com Date: Fri, 28 May 2010 10

[PATCH] tag.lua: find_fallback() returns a suitable fallback tag

2010-06-01 Thread Perry Hargrave
find_fallback(s, t): Looks for a tag on screen 's' and not in 't'. This function is meant to be useful for e.g. delete() and move_screen() to find a suitable fallback tag. Signed-off-by: Perry Hargrave perry.hargr...@gmail.com --- lib/awful/tag.lua.in | 12 1 files

[PATCH] tag.lua: get_byname returns tag given its name

2010-06-01 Thread Perry Hargrave
Signed-off-by: Perry Hargrave perry.hargr...@gmail.com --- lib/awful/tag.lua.in | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/lib/awful/tag.lua.in b/lib/awful/tag.lua.in index cff29e6..9aa2c74 100644 --- a/lib/awful/tag.lua.in +++ b/lib/awful/tag.lua.in

[PATCH 2/5] tag.lua: delete() intelligently delete tags

2010-06-02 Thread Perry Hargrave
the first tag on the screen. Return true if successful and nil otherwise. Signed-off-by: Perry Hargrave perry.hargr...@gmail.com --- lib/awful/tag.lua.in | 56 ++ 1 files changed, 56 insertions(+), 0 deletions(-) diff --git a/lib/awful/tag.lua.in

Re: Dynamic tagging for awful

2010-07-12 Thread Perry Hargrave
On Mon, Jul 12, 2010 at 12:42:52PM +0200, Julien Danjou wrote: It seems we lost track of this set of patches. Perry, would you be kind enough and resent a whole set of patches that me or Uli can review and merge? My apologies. I have pretty much given up on this and my local repository

[PATCH 0/3] Fix FS#620

2011-07-07 Thread Perry Hargrave
I played a bit trying to fix fs#620, at first I thought this could be fixed in mouse/init.lua only. However, by the time I added enough calls to client.focus and c:raise() the mousegrabber became pretty laggy. So I added to screen.c, but then it made the re-focusing of clients in

[PATCH 1/3] Retain focus on clients moved across screens (fs#620)

2011-07-07 Thread Perry Hargrave
Signed-off-by: Perry Hargrave resix...@gmail.com --- screen.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/screen.c b/screen.c index 865ef39..94be2a2 100644 --- a/screen.c +++ b/screen.c @@ -264,10 +264,14 @@ screen_client_moveto(client_t *c, screen_t

[PATCH 2/3] movetoscreen:Dont refocus the selected client

2011-07-07 Thread Perry Hargrave
Signed-off-by: Perry Hargrave resix...@gmail.com --- lib/awful/client.lua.in |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/lib/awful/client.lua.in b/lib/awful/client.lua.in index 1f18963..5846ed6 100644 --- a/lib/awful/client.lua.in +++ b/lib/awful/client.lua.in

[PATCH 3/3] Update tasklist when client screen changes

2011-07-07 Thread Perry Hargrave
This handles corner case where a client has no tags (e.g. stickied), but is moved across screens. Signed-off-by: Perry Hargrave resix...@gmail.com --- lib/awful/widget/tasklist.lua.in |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/lib/awful/widget/tasklist.lua.in b/lib