View Single Post
Old 10-16-2012, 09:54 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
Lightbulb 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:
#! /bin/sh
exec xprop -notype \
-f WM_NAME 8s ':\n title =\? $0\n' \
-f WM_CLASS 8s ':\n appName =\? $0\n className =\? $1\n' \
-f WM_WINDOW_ROLE 8s ':\n stringProperty "WM_WINDOW_ROLE" =\? $0\n' \
WM_NAME WM_CLASS WM_WINDOW_ROLE \
${1+"$@"}
is a handyish shell to adapt to do stuff

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:
[root@kindle us]# xprop -name xeyes
Quote:
WM_PROTOCOLS(ATOM): protocols WM_DELETE_WINDOW
_NET_WM_DESKTOP(CARDINAL) = 0
_NET_WM_STATE(ATOM) =
WM_STATE(WM_STATE):
window state: Normal
icon window: 0x0
WM_CLIENT_LEADER(WINDOW): window id # 0x1400007
WM_LOCALE_NAME(STRING) = "C"
WM_CLASS(STRING) = "xeyes", "XEyes"
WM_HINTS(WM_HINTS):
Client accepts input or input focus: False
Initial state is Normal State.
bitmap id # to use for icon: 0x1400001
bitmap id # of mask for icon: 0x1400003
WM_NORMAL_HINTS(WM_SIZE_HINTS):
program specified size: 150 by 100
window gravity: NorthWest
WM_CLIENT_MACHINE(STRING) = "kindle"
WM_COMMAND(STRING) = { "xeyes" }
WM_ICON_NAME(STRING) = "xeyes"
WM_NAME(STRING) = "xeyes"
[root@kindle us]#
Thoughts on that gratefully accepted. Lipc? Lua?

Spoiler:


I checked out K5 X apps run on native touch Xorg. also

Thanks.


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
twobob is offline   Reply With Quote