You are not logged in.
Pages: 1
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
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
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
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
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
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
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
Offline
Thanks, problem seems solved. My desktop looks beautifull now.
Offline
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
Offline
Pages: 1