![]() |
#16 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
it uses a tiny amount to determine if the title is of interest. Weeny.
Only when a title does not match does it consume significant resources and only then until the title is renamed. |
![]() |
![]() |
![]() |
#17 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Nothing to un-patch when the application closes.
Its windows (and their titles) are gone bye, bye |
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
Quote:
and until another title comes along... it does nothing. other than check it should ignore the "base" stuff. There may be apps that don't follow the windowing convention. And get "fronted by other means" that I didn't check for. Happy to fixup w/e is needed. In the main this is a dev tool for now. "Should we even bother to patch the titles... Let's check with fronter..." |
|
![]() |
![]() |
![]() |
#19 |
Developer's Corner Mascot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 486
Karma: 1277790
Join Date: Sep 2013
Device: Kindle Paperwhite 5.3.4, Kindle Keyboard 3.4
|
So, by now, I'll restart the system and leave it off. If some app will be made that can't work without it and that i really need, I will rethink about leaving it on...
Thanks for explainations! |
![]() |
![]() |
![]() |
#20 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 405
Karma: 2330752
Join Date: May 2012
Device: kt
|
Quote:
Wouldn't it be enough to substitute custom app name with proper one within lua script instead of running external script and changing it with xdotool? I mean to deceive layer manager without really changing the name. I did a very simple test which works. I just checked simple "hello world". I am not sure what would happen with multiwindow apps. But it still might be possible to handle within lua script. EDIT: Tried gtactoe. Seems it works for simple apps with dialog windows. Code:
--- awesome/lab126LayerLogic.lua.org +++ awesome/lab126LayerLogic.lua @@ -132,7 +132,13 @@ -- validate if str == nil or not stringStartsWith(str, "L:") then - return nil + if str == nil or string.match(str,"(webreader|pillowd|kb)") then + log ("FRONTER Skipping: ".. tostring(str)) + return nil + else + log ("FRONTER Renaming: ".. tostring(str)) + str = "L:A_N:application_ID:test" + end end local entries = {} Last edited by baf; 10-01-2013 at 07:54 AM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#21 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
Superb feedback as ever baf.
I just suck bigstyle at LUA. but now you have given me inspiration I shall get right on that! err... In two days when I return from my trips to the wilderness |
![]() |
![]() |
![]() |
#22 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
![]() |
![]() |
![]() |
#23 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 405
Karma: 2330752
Join Date: May 2012
Device: kt
|
|
![]() |
![]() |
![]() |
#24 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
![]() |
![]() |
#25 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
|
![]() |
![]() |
![]() |
#26 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
so I got round to testing this.
1st time round my kindle threw a complete wobbler... (webreader went crazy ![]() so I simply unmounted (via ssh) umount /etc/xdg/awesome; killall -9 awesome and ran the /mnt/us/extensions/fronter/arch/mount.sh via ssh seemed happier. no, it didnt, kept dying on me... hmm Will test more but I like this solution. : ) Thanks baf. Last edited by twobob; 10-11-2013 at 10:39 AM. |
![]() |
![]() |
![]() |
#27 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
okay so I get that we are calling
http://www.keplerproject.org/lualogging/manual.html but... log ("FRONTER Renaming: ".. tostring(str)) err where does that log to? damned if I can find it. do I need to manually set/elevate the logging level? |
![]() |
![]() |
![]() |
#28 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
I think with a bit of extra love...
This could be useful. There are still situations where a program could open a window that is STUPIDLY large (QT ABOUT I'm looking at you) so... to remedy this I propose a sentinel process that monitors the logs for double tap (or maybe pinching..) that IDEALLY would fire up a dialog requesting the the users permission to close out the application (failsafe) however... In the absence of such a process... The following bit of code could at least provide a monitor to "close out" (I.e. exit) badly behaving apps... Code:
echo "" > /var/log/messages; \ showlog -f | awk '$0 ~ /.*GestureEngine*./ {print $6,$7}' 1 down 1 up Two finger tap then release gives 2 down 2 up Various double finger pinch/zoom swipes: 9 down 9 up 7 up 7 down 8 down 8 up So I will look to create a sentinel process that kills off the last registered (or perhaps ACTIVE WINDOW) for these worst case scenarios) Other than that - very happy now of course this does mean that apps that EXPECT pinch will be affected but unless someone has a better idea... This is what I have. Last edited by twobob; 10-11-2013 at 07:06 PM. |
![]() |
![]() |
![]() |
#29 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
echo "" > /var/log/messages; \
showlog -f | awk '$0 ~ /.*GestureEngine*./ {print $6,$7}' |\ awk ' /2 up/ { system("xdotool getactivewindow windowkill") } ' perhaps... Last edited by twobob; 10-11-2013 at 07:29 PM. |
![]() |
![]() |
![]() |
#30 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
Two finger kill. sentinel process
Code:
echo "" > /var/log/messages; showlog -f 2>/dev/null \ | awk ' $0 ~ /.*GestureEngine*./ && $6=="2" && $7=="up" {system("xdotool getactivewindow getwindowname ")} ' \ | awk ' !/L:*.|webreader|kb|pillowd/ \ {system("xdotool getactivewindow windowkill ")}' Last edited by twobob; 10-13-2013 at 12:50 PM. |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Scanned text pdf with OCR but graphical layer instead vectorial | whopper | 2 | 09-10-2011 06:32 PM | |
Hacker friendly | soul_rebel | Which one should I buy? | 12 | 02-13-2011 09:34 PM |
Life Found in the Deepest layer of Earth's Crust | kennyc | Lounge | 0 | 11-19-2010 05:02 PM |
Best firmware for Hanlin V5 aka Bebook Mini aka Papyre 5.1? | javimm | HanLin eBook | 1 | 01-11-2010 05:37 PM |