You are not logged in.

#1 2013-06-26 15:49:52

severus
Member
Registered: 2013-06-26
Posts: 5

[SOLVED] Xterm window title problem

HI!
I finally decided to install Arch with openbox, because I have some free time for it and it looks really nice for me. At the beginning every problem could be solved, but now I think I need your help.
To have nice-looking transparent terminals on my desktop, started at boot, I installed DevilsPie and Xcompmgr. I started to write some fancy devilspie code in ~/.devilspie/xterm.dc:

(if
	(is (window_name) "MyTerminal")
	(begin
		(spawn_sync (str "transset-df -i " (window_xid) " 0.7") )
	)
)

In ~/.xinitrc and ~/.config/openbox/autostart I put commands starting devilspie and xterm:

devilspie -c &
xterm -T "MyTerminal" &

But instead of having name "MyTerminal" console still have name "severus@severus:~", according to current location. Nothing can force xterm to have different name. And here is my problem: how can i recognize my window in devilspie script, when it has different name than it should? How can I override the window title of xterm? I guess that automatic update of terminal title can be disabled, but where? I was looking, for now without effect.

Last edited by severus (2013-06-26 20:57:23)

Offline

#2 2013-06-26 18:34:48

mychris
Member
From: Munich
Registered: 2012-09-15
Posts: 68

Re: [SOLVED] Xterm window title problem

I don't know DevilsPie, but normally you can use other window properties like WM_CLASS to match windows.
Look up the man page of DevilsPie if it is possible and take look at xprop with which you can look up properties of windows.

Offline

#3 2013-06-26 19:37:41

severus
Member
Registered: 2013-06-26
Posts: 5

Re: [SOLVED] Xterm window title problem

Thx for xprop, helps in debugging all these things and everything. But still cannot change the name, even when i use different solution for devilspie.

Offline

#4 2013-06-26 19:49:08

mychris
Member
From: Munich
Registered: 2012-09-15
Posts: 68

Re: [SOLVED] Xterm window title problem

Sure, i though you should match against the WM_CLASS in your DevilsPie config script and not against the WM_NAME.
The window title will be set by the global bashrc int /etc/bash.bashrc.
Look at http://www.faqs.org/docs/Linux-mini/Xterm-Title.html to see the escape sequences etc.

Offline

#5 2013-06-26 20:16:08

severus
Member
Registered: 2013-06-26
Posts: 5

Re: [SOLVED] Xterm window title problem

Thanks a lot!
Can I disable the window name changing by these and it will be secure? I have done it (comment the command in bash.bashrc), and nothing bad happened yet.

Offline

#6 2013-06-26 20:30:20

mychris
Member
From: Munich
Registered: 2012-09-15
Posts: 68

Re: [SOLVED] Xterm window title problem

It depends on what your global bashrc is doing. I think the default one only manipulates the PROMPT_COMMAND variable and adds the escape string for the window title.
But this will disable the window name for all instances of xterm.

Offline

#7 2013-06-26 20:34:00

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED] Xterm window title problem

Those are just completely aesthetic.  You could get rid of everything in /etc/bash.bashrc and not have any problems.  But any changes you make to these can get overwritten with updates.

Just make your own ~/.bashrc, and unset PROMPT_COMMAND (or set it to something else).


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

#8 2013-06-26 20:57:07

severus
Member
Registered: 2013-06-26
Posts: 5

Re: [SOLVED] Xterm window title problem

Thanks, problem seems solved. My desktop looks beautifull now.

Offline

#9 2013-06-26 20:57:51

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,571
Website

Re: [SOLVED] Xterm window title problem

Glad it's working.  Be sure to append [SOLVED] to the title by clicking edit on your first post.  (edit: you beat me to it.)

Last edited by Trilby (2013-06-26 20:58:09)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Online

Board footer

Powered by FluxBB