10-16-2012, 09:54 PM | #1 | |||
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
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
|
programatically set xwindows titles : SOLVED
Hi, I know it is possibly to set the titles of X apps that honor the -name and -title parameters, however I would like to change the title of apps programmatically.
EDIT: Solved: [root@kindle root]# xprop -name LBreakout2 -f WM_NAME 8s -set WM_NAME bob Quote:
however it seems that setting the title after it has been stuck on the background is not enough. nor is toggling the WM_STATE 0 to 1 or vice versa. Quote:
Spoiler:
Perhaps reparenting is the way forward? http://standards.freedesktop.org/xem...-spec-0.5.html http://menehune.opt.wfu.edu/Kokua/Ir...html/ch16.html Last edited by twobob; 10-16-2012 at 11:43 PM. Reason: https://www.mobileread.com/forums/showthread.php?t=162022 |
|||
10-16-2012, 10:39 PM | #2 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
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:
cannot convert WM_NAME argument to STRING or COMPOUND_TEXT. [root@kindle root]# xprop -name LBreakout2 -set WM_NAME L:A_N:application_ID:breakout cannot convert WM_NAME argument to STRING or COMPOUND_TEXT. [root@kindle root]# xprop -name LBreakout2 -set WM_NAME 'L:A_N:application_ID:breakout' cannot convert WM_NAME argument to STRING or COMPOUND_TEXT. hmm... *reads more* and further refs: http://tronche.com/gui/x/icccm/sec-4.html#WM_NAME http://oreilly.com/catalog/motifref2...html/ch16.html Last edited by twobob; 10-16-2012 at 11:16 PM. |
|
10-16-2012, 10:54 PM | #3 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
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
|
simple one liner:
[root@kindle root]# xprop -name LBreakout2 -f WM_NAME 8s -set WM_NAME "bob" done. Here's some handy code for more serious code level work. Spoiler:
Last edited by twobob; 10-16-2012 at 11:08 PM. |
10-17-2012, 07:57 AM | #4 | |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
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
|
Got xdotool running now on the kindle. maybe that can do that job...
Quote:
|
|
10-17-2012, 09:07 AM | #5 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
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
|
xdotool windowreparent 0x1000003 0x51
looks to work okay. |
10-17-2012, 10:35 AM | #6 |
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
Posts: 6,586
Karma: 6299991
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 after much debating. I think simply minimising the three windows is the best option
Home, Searchbar, Blank background. (searchbar) [root@kindle root]# xdotool windowminimize 0xe00033 (titlebar) [root@kindle /dev]# xdotool windowminimize 0xe0004a (home) [root@kindle /dev]# xdotool windowminimize 0x1000024 (blank background) [root@kindle /dev]# xdotool windowminimize 0xe00003 and then restore them again [root@kindle root]# xdotool windowactivate 0xe00033 etc.. simple. That way all the nice TSLIB events get piped to the "topmost app" - which is ours I am currently playing breakout on my kindle 5 : ) YAY with a working TS interface Joy Last edited by twobob; 10-17-2012 at 11:23 AM. Reason: more ids |
Tags |
k5 tools, kindle 5, xorg |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
set up ? | IGraham | Library Management | 4 | 04-05-2012 02:32 PM |
I Love Titles. Do you Love Titles? What's your Favorite Title? | kennyc | General Discussions | 106 | 01-19-2012 11:32 AM |
Titles, subtitles & alternative "display" titles | jigme | ePub | 2 | 08-31-2011 05:19 PM |
Getting book's id number programatically | GreyNomad | Development | 3 | 03-18-2011 04:16 AM |
iLiad ARM (+Xwindows) resources | arivero | iRex Developer's Corner | 0 | 10-22-2006 10:19 AM |