Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 10-18-2012, 11:31 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,552
Karma: 6021146
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 Touch management bundle

Contents

wmctrl

Spoiler:
Code:
[root@kindle us]# wmctrl -l -G -v
envir_utf8: 1
Invalid type of WM_CLIENT_MACHINE property.
Invalid type of WM_CLIENT_MACHINE property.
Invalid type of _NET_WM_NAME property.
Invalid type of WM_CLIENT_MACHINE property.
Invalid type of _NET_WM_PID property.
0x01600002  0 3    3    592  800     N/A rubix
Invalid type of _NET_WM_NAME property.
Invalid type of WM_CLASS property.
Invalid type of WM_CLIENT_MACHINE property.
Invalid type of _NET_WM_PID property.
0x01200002  0 0    200  600  700     N/A 
L:A_N:application_ID:com.lab126.booklet.home_M:false_PC:TS_RC:true_O:U
0x00e0004a  0 0    0    600  30   kindle L:A_N:titleBar_ID:system
0x00e00033  0 0    60   600  70   kindle L:C_N:searchBar_SBTH:70_SBPH:70_ID:system
0x01000003  0 0    1050 600  275  kindle 
L:KB_N:keyboard_KBS:H_LanH:260_DM:KB_PorH:275
0x00e00003  0 0    0    600  800  kindle L:A_N:application_ID:blankBackground_WS:true
0x00c00021  0 0    0    200  200  kindle webreader

[root@kindle us]# wmctrl -m
Name: awesome
Class: N/A
PID: 31008
Window manager's "showing the desktop" mode: N/A

[root@kindle us]# wmctrl -d
0  * DG: 600x800  VP: N/A  WA: 0,0 600x800  1
1  - DG: 600x800  VP: N/A  WA: 0,0 600x800  2


xdotool

xcursogen

xlsfonts

tslib binaries

This time round I didn't bundle libs already on the devices.

Enjoy.
Attached Thumbnails
Click image for larger version

Name:	Selection_207.png
Views:	291
Size:	14.4 KB
ID:	94432  
Attached Files
File Type: gz wm-ts-management-bundle-K5.tar.gz (157.5 KB, 129 views)

Last edited by twobob; 10-18-2012 at 11:38 PM. Reason: example output
twobob is offline   Reply With Quote
Old 10-19-2012, 12:20 AM   #2
knc1
Helpdesk Junkie
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,998
Karma: 6314536
Join Date: Feb 2012
Device: Too many.
Nice package there.
Now let us hope someone uses it for an interesting project and reports back.
knc1 is offline   Reply With Quote
Old 10-19-2012, 10:26 AM   #3
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,552
Karma: 6021146
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:
Originally Posted by knc1 View Post
Nice package there.
Now let us hope someone uses it for an interesting project and reports back.
[root@kindle /dev]# wmctrl -r L:A_N:titleBar_ID:system -e '0,0,0,600,1'

[root@kindle /dev]# wmctrl -r L:A_N:titleBar_ID:system -e '0,0,0,600,30'


Use number 1 hiding the titlebar is a less lethal way. sweet.
twobob is offline   Reply With Quote
Old 10-19-2012, 10:58 AM   #4
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,552
Karma: 6021146
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
A "for example" usage of some of these tools

go-game.sh
PHP Code:
#xdotool windowminimize 0x1200002  ==
     
for i in $(xwininfo -tree -root grep "home" | \
grep --e 0x[a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9]* ); do
        echo 
item$i
        xdotool windowminimize $i
    done
    
     
for i in $(xwininfo -tree -root grep "blankBackground" | \
grep --e 0x[a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9]* ); do
        echo 
item$i
        xdotool windowminimize $i
    done
    
     
for i in $(xwininfo -tree -root grep "searchBar" | \
grep --e 0x[a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9]* ); do
        echo 
item$i
        xdotool windowminimize $i
    done

# can very occasionally require this twice 
#(awesome getting in the way?) so we do it twice anyways.    
wmctrl -r L:A_N:titleBar_ID:system -'0,0,0,600,1'
wmctrl -r L:A_N:titleBar_ID:system -'0,0,0,600,1' 
stop-games.sh
PHP Code:
#!/bin/sh

  
for i in $( xdotool search --classname webreader ); do
            echo 
item$i
            xdotool windowactivate $i
        done
        
    
#xdotool windowminimize 0x1200002  ==
     
for i in $(xwininfo -tree -root grep "home" | \
grep --e 0x[a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9]* ); do
        echo 
item$i
        xdotool windowactivate $i
    done
    
     
for i in $(xwininfo -tree -root grep "blankBackground" | \
grep --e 0x[a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9]* ); do
        echo 
item$i
        xdotool windowactivate $i
    done
    
     
for i in $(xwininfo -tree -root grep "searchBar" | \
grep --e 0x[a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9][a-z0-9]* ); do
        echo 
item$i
        xdotool windowactivate $i
    done

wmctrl 
-r L:A_N:titleBar_ID:system -'0,0,0,600,30' 
This is far-as-I-can-tell a working "one shot" solution.

geometry based workarounds for status bar now in place.

Provides a complete, "safe", screen tear-down and build-back.
Allowing the Kindle system to run unmolested and us to hack on screen content.

EDIT: To use these tools the way I use them:
I configure my system as outlined at minimodding.

http://minimodding.com/article9-Kind...ng-custom-apps

I am thinking of possibly making the whitney button have a triple-click to toggle the tear-up and tear-down. (separate process / thread to game) in case of "accidents", or maybe I could test for geometry? undecided.

no, now I'm thinking use TCL... maybe

either way this works.

Provided "as-is" - you would want SSH access running to use this at present.

Cheers.

Last edited by twobob; 10-19-2012 at 11:27 AM. Reason: TCL
twobob is offline   Reply With Quote
Old 10-31-2012, 07:40 PM   #5
CrazyCoder
Connoisseur
CrazyCoder knows the chase is better than the catch.CrazyCoder knows the chase is better than the catch.CrazyCoder knows the chase is better than the catch.CrazyCoder knows the chase is better than the catch.CrazyCoder knows the chase is better than the catch.CrazyCoder knows the chase is better than the catch.CrazyCoder knows the chase is better than the catch.CrazyCoder knows the chase is better than the catch.CrazyCoder knows the chase is better than the catch.CrazyCoder knows the chase is better than the catch.CrazyCoder knows the chase is better than the catch.
 
Posts: 67
Karma: 121468
Join Date: Apr 2011
Location: St. Petersburg, Russia
Device: K3, K4NT, Nook STwGL
Any ideas why wmctrl works with window title (-r), but not with window id (-i -r)?
never mind, made a typo

Last edited by CrazyCoder; 10-31-2012 at 08:32 PM.
CrazyCoder is offline   Reply With Quote
Old 09-02-2013, 08:21 AM   #6
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,552
Karma: 6021146
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
more examples of window manipulation using these tools

http://www.mobileread.com/forums/sho...postcount=1049
twobob is offline   Reply With Quote
Reply

Tags
bundle, k5 tools, kindle touch, tslib, wmctrl, xdotool

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick Guide to Shelf Management with calibre 0.9.1 & above (Touch / Glo / Mini /Aura) PeterT Kobo Reader 421 10-27-2014 12:13 AM
March 2010 Baen Webscription Bundle (old bundle, new thread) scottken Deals, Freebies, and Resources (No Self-Promotion) 62 10-27-2012 08:33 AM
Free SF/Fantasy December 11 Monthly Baen Bundle (old bundle, new thread July 2012) Ginwen Deals, Freebies, and Resources (No Self-Promotion) 2 07-04-2012 07:33 PM
Thinking of getting a Kobo Touch - Battery + Book Management questions nila Kobo Reader 17 06-23-2012 05:42 PM
Kindle Touch Collection Management RRRrrr Amazon Kindle 21 05-23-2012 06:05 AM


All times are GMT -4. The time now is 04:15 PM.


MobileRead.com is a privately owned, operated and funded community.