View Single Post
Old 09-26-2013, 08:00 PM   #1
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Post FRONTER. aka. "awesome layer hacker" V.1.0.1

THE CONCEPT:

It's quite simple. manipulate the underlying LUA structure of the kindle (Touch and newer) window manager to allow for most applications to be run without recoding.

SAFETY:
It's all done in a bindmount so no harm is done should something go horribly wrong.

COPYRIGHT:
I can't distribute Amazon code.. So I don't - we make a copy of the EXISTING code and then patch that

DO I NEED THIS???

err. probably not unless you are looking to run some stuff from debian/other sources that uses X and hasnt been title patched. Some devs may note that FRONTER is required to run a release.

DOES IT WORK ALL THE TIME???

meh. mostly.

WHAT IS EXPECTED OPERATION????

You run the KUAL button, Awesome will restart... after that any apps you start that dont have correct titles (L:Blah...) will be automagically renamed on-the-fly until you reboot.

ANYTHING ELSE??? or ARGH! I CAN'T EXIT 'whatever-name' APPLICATION

Yes, If you GET STUCK (some apps may launch window that are WAY too big for the screen and you can't exit or fail to render properly etc...) then you can always place TWO FINGERS on the screen and then release one. This will CLOSE THE APPLICATION. Currently this is ANYWHERE on the screen AT ANY TIME and won't ask you if you are sure... That is something that will probably be improved upon in the next version.

TODO:
add "are you sure" dialog.
Allow for keyboard toggling.


Well that's it. enjoy



Original message was:
Spoiler:
Now look, this thing aint finished.

as in INCOMPLETE. It "works" for many cases but there are known bugs.

And TBH without some testing and help from the community? It never will improve on what I got here....

THE CONCEPT:

It's quite simple.

add a single some hook(s) into the awesome LUA logic to run a set of processes JUST PRIOR to the sorting of layers. (shell script that can contain w/e you want)

in this instance the example POC here uses xdotool to rename and then reparent the offending "Wrongly titled" applications (with sensible exceptions)

It works a large %age of the time and I use it a LOT to figure out if something is worth porting without all the mess of a Xephyr.


KNOWN ISSUES:

Titles with spaces in are currently not handled. That is just - honestly - shit coding on my part, please please please feel free to chime in how to fix that.
Version 0.2 attempts to inject earlier and switch by classname.
Possibly will fix more of the awkward corner cases...
might have introduced a race condition. Time will Tell.

Performance is currently terrible. Needs improvement.
can take a few seconds to detect a window at the moment.
very easy to improve upon that performance...
Attached Files
File Type: zip FRONTER-awesome-wm-addon-V.1.0.1.zip (392.4 KB, 236 views)

Last edited by twobob; 10-13-2013 at 12:53 PM. Reason: V.1.0
twobob is offline   Reply With Quote