![]() |
#31 |
( ͡° ͜ʖ ͡°){ʇ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'll make that into a singleton script then that runs whenever fronter is active.
Where the type of click is configurable as 2 7 8 or 9 twobob.fronter.sentinel.sh I have encountered a few situations/apps already that have required this Double Finger Kill technique. The ideal evolution would be to pass this to a true/false dialog before triggering the kill. Happy to take advice on that. |
![]() |
![]() |
![]() |
#32 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 405
Karma: 2330752
Join Date: May 2012
Device: kt
|
Quote:
It goes to /var/log/messages AFAIR. You must raise log level with debugOn.sh though. |
|
![]() |
![]() |
Advert | |
|
![]() |
#33 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
![]() For those users all too familar with: ctrl-alt-del ![]() If Linux apps are to replace Windows apps - don't we have to support all of the Windows 'features' ? Last edited by knc1; 10-12-2013 at 12:58 PM. |
|
![]() |
![]() |
![]() |
#34 | ||
( ͡° ͜ʖ ͡°){ʇ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:
Makes sense. I got around it. ![]() Quote:
Sadly only two touch points are supported ![]() perhaps the sentinel script can be extended to support keyboard toggling in the very near future... |
||
![]() |
![]() |
![]() |
#35 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 405
Karma: 2330752
Join Date: May 2012
Device: kt
|
Quote:
You can also implement your sentinel in functions handling button (touchscreen) presses (in the same rc.lua). Last edited by baf; 10-13-2013 at 06:05 AM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#36 | |
( ͡° ͜ʖ ͡°){ʇ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:
|
|
![]() |
![]() |
![]() |
#37 |
( ͡° ͜ʖ ͡°){ʇ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
|
implemented exact-only matching, corner-case cleanup, and reduced logging noise.
Code:
+ if str == nil then + return nil + end + + if not stringStartsWith(str, "L:") then + +-- Debug llog.info("WindowManager", "bad-client-name", "winName=" .. tostring(str), "report-untidy") + +-- exact matches only, Ditch the system stuff, this prevents thing like "Gtkboard" matching "kb" + + if (str == "kb") or (str == "webreader") or (str == "pillowd") then + return nil + + else + +-- we made it this far - let tidy up likely corner cases +-- tidy up spaces and other potentially magic characters + str = string.gsub(str, "%s+", "-") + str = string.gsub(str, "%%+", "-") + str = string.gsub(str, "%^+", "-") + str = string.gsub(str, "%$+", "-") + str = string.gsub(str, "%(+", "-") + str = string.gsub(str, "%)+", "-") + str = string.gsub(str, "%[+", "-") + str = string.gsub(str, "%]+", "-") + str = string.gsub(str, "%*+", "-") + str = string.gsub(str, "%?+", "-") + str = string.gsub(str, "%++", "-") + str = string.gsub(str, "%_+", "-") + str = string.gsub(str, "%/+", "-") + str = string.gsub(str, "%:+", "-") + +-- Debug llog.info("WindowManager", "good-client-name", "winName=" .. tostring(str), "post-tidy") + str = "L:A_N:application_ID:" .. tostring(str) .. "_O:R_PC:N" +-- Debug llog.info("WindowManager", "title", tostring(str) , " ✔") end +end |
![]() |
![]() |
![]() |
#38 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 405
Karma: 2330752
Join Date: May 2012
Device: kt
|
I wonder if there is any need to struggle with app titles. Couldn't you just assign one generic title for all injected windows. Titles don't have to be unique.
|
![]() |
![]() |
![]() |
#39 |
( ͡° ͜ʖ ͡°){ʇ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's a good point.
And one I really should take on board. I guess it was really more important during the testing phase. (spent a good hour or so wondering/finding why Gtkboard wouldn't "run") Once again. excellent input. |
![]() |
![]() |
![]() |
#40 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
At least 'tag' this approach in your local development repo. before making vast changes to it. (You did remember to do a: git init on this work directory, didn't you?) |
|
![]() |
![]() |
![]() |
#41 |
but forgot what it's like
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Create /var/tmp/root/.config/awesome/rc.lua:
Code:
package.path = "/var/tmp/root/.config/awesome/?.lua;" .. package.path dofile("/etc/xdg/awesome/rc.lua") Power of RTFM, baby ![]() |
![]() |
![]() |
![]() |
#42 |
( ͡° ͜ʖ ͡°){ʇ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
|
sweet work that man.
I believe there was a default keybinding CMD + R (or something) that causes awesome to reload it's configuration while running... Another gem to be dug up perhaps one day. *makes notes* Last edited by twobob; 10-23-2013 at 08:25 AM. |
![]() |
![]() |
![]() |
#43 | |
but forgot what it's like
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
|
Quote:
I came to something different but also useful for this case (using overrided rc.lua): Code:
package.path = "/var/tmp/root/.config/awesome/?.lua;" .. package.path dofile("/etc/xdg/awesome/rc.lua") local lipcH, errNum, errMsg = lipc.init("com.lab126.winmgr.extra") if not lipcH then log ("!!!!!!!!!!!failed to init lipc " .. tostring(errNum) .. ", " .. errMsg) else lipcH:register_string_property("restart", "w").listener = awesome.restart awesome.add_signal("exit", lipcH:close) end Code:
$ lipc-set-prop com.lab126.winmgr.extra restart now Unfortunately, every restart creates additional /bin/sh -c awesome process hanging around. And according to awesome sources, it's by design: Spoiler:
Last edited by eureka; 10-23-2013 at 10:16 AM. |
|
![]() |
![]() |
![]() |
#44 |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 457
Karma: 1287375
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
|
latest fronter 1.0.1 doesn't work for me. I had an earlier version that I just tried and that works fine.
the 1.0.1 version shows the patch fine, then when I run a program like pente or kcheckers, no display. the programs are running (ps -A) and the run script is also running. I'm not quite sure what exactly was changed here between versions? Did you happen to add version numbers in a script anywhere? I'm willing to put on the non-working version again if you tell me what to test? does the current version work for anyone/everyone else? |
![]() |
![]() |
![]() |
#45 |
( ͡° ͜ʖ ͡°){ʇ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
|
Previous version worked via xdotool. new one relies on the internal LUA commands.
I should get one of these touches bumped to 5.3.7 and check nothing major changed... Also add the evolutional changes outlined by Eureka/Baf above. But I have several projects cooking at once right now... Feel free to take over this one. All the notes are on these few pages and the technology used is one copy of "patch" and a lot of fiddling. Totally transparent. |
![]() |
![]() |
![]() |
|
![]() |
||||
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 |