Quantcast
Channel: MobileRead Forums - Kindle Developer's Corner
Viewing all articles
Browse latest Browse all 4414

K5 programatically set xwindows titles

$
0
0
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

:2thumbsup

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

Viewing all articles
Browse latest Browse all 4414

Trending Articles