You are not logged in.
Pages: 1
I had the idea that all terminals supported the -T parameter used to set the window title. It has come to my attention that sakura does not. Instead it uses lowercase -t as the parameter.
Is sakura alone in this behavior or are there other terminal emulators that use a different parameter, or don’t even support setting the title.
This is an important issue since this incompatibility could easily break programs and scripts with terminals that do not support it.
Last edited by JWM-Kit (2024-02-08 14:43:55)
Offline
Having read the man pages for several terminal emulators I have come to the conclusion that there is no standard. Which really is sad. Most of them do support either -T or -t. Simply recognizing both upper and lower case T for the argument would be a giant leap forward.
Offline
I can't answer your question. Sorry.
However, I've tried many terminals...and it has been a bane to me. At the end of the day, I decided to just use xterm (since it comes in automagically when building my own system). Took A LOT of searches on how to get it customized to my liking...you know...default font, font size, transparency, etc...
Now...after figuring out all of that fluff with an .Xresources file in my home folder and a line for transparency in my picom file, I can't imagine using another terminal.
I know that doesn't help you, but I'm not sure what you're trying to accomplish??? Sorry.
Offline
I know that doesn't help you, but I'm not sure what you're trying to accomplish?
Not everyone uses the same terminal, so if I share code with others that launches the user's default terminal emulator then that code needs to be compatible with as many terminals as possible, hopefully all of them. If the parameters used are not consistent across all terminals then the code will break.
Setting the title is only cosmetic and is not that important. For the sake of compatibility I guess I'll just leave ti out for now.
Offline
Ahhh...gotcha. Yes sir, that must be frustrating. Best of luck.
Offline
Unfortunately in cases like these the best way is probably to find out which actual terminal it is (e.g. use `namei` or equivalent to find where x-terminal-emulator actually resolves to), then have a table of known terminals to option names to map the option correctly.
A hassle, of course. But ultimately solvable.
Online
I'm on the other side...
Is this a personal preference...a cosmetic feature that you would like to have on your spin?
I've just installed Sakura and three other terminals without any customization (Kitty, RXVT, and QTerminal). The title bars (including xterm) all read the same...
tap@miyolinux
There's probably a script you could write that would do what you're wanting...or setting the terminal's title bar name with a .bashrc file???
I don't know. All that I do know is that I have never personally paid attention to the terminal's title bar name until this. Hahaha!
I've looked at the configuration files for each one, but none of them gave me anything about setting the title bar name.
I don't even have a title bar on my terminal on my Openbox and JWM systems.
Good luck!
Last edited by The-Amnesiac-Philosopher (2024-02-09 18:37:42)
Offline
@quickfur
I had the thought of creating a dictionary for terminals and the parameter. If a terminal was not in the dictionary just don't set the title. For now I think I'll just not set the title.
@The-Amnesiac-Philosopher
To be clear this is not about "general" settings for the terminal, but for a creating a launcher that starts the terminal and a specific task.
My goal was to set the title to the name of the task the terminal would be running. To clarify I mean the actual name, not the executable name. Most terminal will set the title to the executable name. Which is close enough. So it's not worth writing a bunch of code to implement.
Last edited by JWM-Kit (2024-02-09 20:30:04)
Offline
Oh.
Offline
Not sure if this helps with your particular situation, but you can change the title of a window with the WM_NAME atom. I edited the previous version of this post because I provided a long example that did this with XSetWindowProperty(), but it turns out there's a dedicated function XFetchame() that does this much more easily. The documentation is here:
https://www.x.org/releases/current/doc/ … E_Property
If you first need to identify the windows that need their name changed, you can use XGetClassHint() to get the unaltered application name. (Terminals will usually update the title with the working directory, etc.)
Last edited by stultumanto (2024-03-05 21:35:50)
Offline
Pages: 1