Commit Graph

42 Commits

Author SHA1 Message Date
Quan Guo 2d192e266e Perfecting the functions of secondary functions
Zooming client and killing clients are making more sense.
After you zoom a client, the position of hintbox will be updated.
And the hintbox on other clients are hided.

After kill a client, the position of other hintbox are updated
according to the rearrangement of the rest of clients.
2015-09-26 23:55:16 +02:00
Quan Guo f97f858bd7 Use pcall() for better error handling
It suppose to clean the mess if revelaton.expose() function fails.
2015-09-26 19:44:20 +02:00
Quan Guo 48093919be Test the the pcall 2015-09-26 03:38:54 +02:00
Quan Guo 399d7ddf64 Merge branch 'master' into develop 2015-09-26 01:46:14 +02:00
Quan Guo 2f6858d946 Update master branch to work with all verions of awesome WM 2015-09-25 02:58:34 +02:00
Quan Guo 77318111e3 Merge branch 'master' into develop
merge Pull request from github to develop
branch, because the codes are based on
github version of awesome WM.
2015-09-22 11:08:39 +02:00
Quan Guo 6eb10b3bfb Repalce gears.timer.delayed_call for now
It is not in released version
2015-09-21 23:09:56 +02:00
actionless 9a020ce776 refactor: minor fixes 2015-08-21 02:24:01 +02:00
actionless fe9ee01268 use dpi value for size 2015-08-21 02:09:21 +02:00
actionless 990a8df5d2 fix issues with current awesome-wm master branch 2015-08-21 02:00:40 +02:00
Quan Guo bc30e5573c Add block timer
Due to delayed re-calcuation of geometry of clients, A timer
was added to ensure that the place of hintbox was properly placed.
2015-07-25 21:42:12 +02:00
Quan Guo cf5f4eef69 Merge pull request #10 from blueyed/fix-whitespace
minor: remove trailing whitespace
2015-04-21 23:24:14 +02:00
Quan Guo fe77a77d62 Merge pull request #9 from blueyed/use-client-jumpto
Use `awful.client.jumpto` in `selectfn`
2015-04-21 23:22:31 +02:00
Daniel Hahler 0779215ae9 Fix running out of entries in `charorder`
When there are more clients than entries in `charorder`, the following
error occurs:

    W: awesome: luaA_dofunction:77: error while running function
    stack traceback:
            /home/user/.config/awesome/revelation/init.lua:166: in function </home/user/.config/awesome/revelation/init.lua:124>
            (...tail calls...)
            /usr/local/share/awesome/lib/awful/key.lua:43: in function </usr/local/share/awesome/lib/awful/key.lua:43>
    error: /home/user/.config/awesome/revelation/init.lua:166: attempt to index field '?' (a nil value)

This fixes it by skipping setup of `hintindex` in this case.

Fixes https://github.com/guotsuan/awesome-revelation/issues/4.
2015-04-21 02:43:48 +02:00
Daniel Hahler 1dcb5576fe minor: remove trailing whitespace 2015-04-21 02:09:37 +02:00
Daniel Hahler 79164e1f92 Use `awful.client.jumpto` in `selectfn`
This makes the code easier and less likely to cause issues in the
future.
2015-04-21 02:07:23 +02:00
Quan Guo 71f8972809 Merge branch 'master' into develop
Conflicts:
	init.lua
2014-03-02 22:33:23 +01:00
Quan Guo f8363cbc74 Add the function of pressing Shift + hint key
Now, in revelation, press Shift + hint key
to maximise the selected client.
Press Shift + any key again to undo
the maximisation.
2014-03-02 22:13:59 +01:00
Quan Guo c5069cf0dd fix the typo in revelation.init(arg)
arg -> args
2014-02-19 20:11:03 +01:00
Quan Guo c6685a5369 Merge branch 'develop'
1) be able to handle speical clients(float, maxium, etc.)

Conflicts:
	init.lua
2014-02-19 20:06:15 +01:00
Quan Guo dfcdd4c08b change the restore function.
If you select the minimized client. revelation will restore it
and then focus on it
2014-01-21 20:09:18 +01:00
Quan Guo 22133471ed fix tow bugs. 1) function revelation.init() ould be revelation.init(args)
2) in init() args.match.exact should be args.match.any
Thanks @henfiber
2014-01-10 16:04:34 +01:00
Quan Guo f1701d4fbd fixed two bugs: 1)function revelation.init() -> function
revelation.init(arg)
               2) args.match.exact should be args.match.any in init()
2014-01-10 16:01:18 +01:00
Quan Guo 1e38d9e817 Add codes to handle special clines(maximized, ontopped,
fullscreened, etc)
2014-01-04 02:57:08 +01:00
Quan Guo 17f62a207d Merge branch 'develop'
Conflicts:
	init.lua
2014-01-02 23:31:38 +01:00
Quan Guo c9e1d2bad7 The bug of incorrect layout should be fixed 2014-01-02 04:21:20 +01:00
Quan Guo dc8066861a try to fix the wrong layout bug 2013-12-31 22:55:59 +01:00
Quan Guo a381532c08 fixed the bug that the layout of the restored tags was wrongly set to be
float
2013-12-31 22:27:03 +01:00
Quan Guo e3902f380e fix the bug of function expose() with no parameters 2013-12-31 01:43:39 +01:00
Quan Guo 77ef3e3ee7 a. forece to disable all other tags when in the revelation tag
b. correct a few errors to make sure the letter boxes dispear as we wish
2013-12-30 23:41:46 +01:00
Quan Guo 8dd232f1fe update the the delivery of the parameters 2013-12-30 22:50:54 +01:00
Quan Guo f8992a38ba add a parameter to allow only collect clients from current tag 2013-12-30 22:42:52 +01:00
Quan Guo b19d5b5201 correct the minor bug in selectfn() 2013-09-08 16:21:57 +01:00
Quan Guo 76ad9523f7 update the documents 2013-08-31 22:54:57 +01:00
Perry Hargrave 1131fb792e Tiles floating clients during expose view
Thanks to Falco I noticed that its cumbersome to have some floating
clients during the expose view of all clients. What do you do if the
client you want is below a floating client?

Well now we make everybody tile during expose, then restore their states
when leaving the Revelation tag.

Signed-off-by: Perry Hargrave <resixian@gmail.com>
2011-12-22 13:49:53 -08:00
Falco Peijnenburg 05a9877618 FIX: Floating clients losing their positions and sizes when
returning from Expose mode. (Issue #4)
2011-12-22 17:21:31 +01:00
Falco Peijnenburg e8f6064bd2 ADD: When in revelation mode, middle click will close the window
under the pointer.

This is very useful for window management. When you have many
windows open and you want to close some, you can just open
revelation and close the windows with middle mouse.

I have maintained your coding style, but I recommend not testing
boolean variables against true/false. So instead of
if mouse.buttons[1] == true then ...
you would have
if mouse.buttons[1] then

and instead of
if mouse.buttons[1] == false then -- doesn't actually appear in
code
you would have
if not mouse.buttons[1] then ...

That's just a minor niggle though.
2011-12-21 22:42:20 +01:00
Perry Hargrave 563e92714f Fix awful import
Signed-off-by: Perry Hargrave <resixian@gmail.com>
2011-12-06 14:59:12 -08:00
Perry Hargrave 817bc9fc8d Adds client filtering ability. issue #2 2011-10-20 16:24:41 -07:00
Nikola Petrov 66d2b8390b typo fix 2011-10-02 00:13:43 +03:00
Nikola Petrov cab3d2d151 Add mouse support to revelation. Use the mousegrabber for that. 2011-10-02 00:03:12 +03:00
Perry Hargrave 70901c8a9f Initialize revelation as a module 2011-08-23 14:37:11 -07:00