wezterm icon indicating copy to clipboard operation
wezterm copied to clipboard

ICCM `WM_CLASS` and `WM_NAME` specification

Open amanjitsk opened this issue 1 year ago • 2 comments

Is your feature request related to a problem? Please describe. It would be super convenient for WM users if wezterm start takes in arguments to specify the class, instance name and title attributes corresponding to the WM_CLASS and WM_NAME properties in the ICCM standard.

Describe the solution you'd like Three separate flags for the wezterm start command for ex. --class, --name and --title. (see kitty as an example). Right now the --class flag sets both the instance name and class name in the WM_CLASS attribute for the window. I imagine it would be more flexible to specify the instance name and class name portions of the WM_CLASS attribute separately (again thinking from the perspective of a bspwm user where one can filter and set different rules for windows based on the instance, class and title).

--title can set the WM_NAME attribute, and while I am aware that there exists a command to change the window title of an existing window (using wezterm cli set-window-title, which does not actually work as expected as of now - see #4899), it would be also be nice to specify this at launch time.

Describe alternatives you've considered Using an alternative emulator like kitty which implements these 3 flags (I used that as a reference)

Additional context N/A

amanjitsk avatar Feb 02 '24 19:02 amanjitsk

+1 on this

even things like tym and st has this as a feature would be very useful indeed, as I am trying to write a "wrapper" around my most commonly used terminals and the other ones mentioned has it as easy as --title for tym and -T/-t for st.

and neither of those have most of wezterm's feature-set(like tabs and splits), st - being minimal to the point of decreased usability

I wish I knew enough rust to create a merge/pull request

erikLundstedt avatar Jul 18 '24 14:07 erikLundstedt

Run into the same problem wanting to write myself a dirty toggle-on-off scratchpad terminal to use for quick bg operations. With wezterm only default - current running process dynamically set as window title - I cannot reliably target a specific client window in my wrapper script. This is crap unfortunately. Ended up using kitty for this because -T flag sets a static unchanging title (same as --class does for client class) and the setup was super easy - literally seconds. Shocked to find out even st has the feature, and feature is not a word you would typically associate with suckless :D Sadly, I don't know rust so all I can do is bring the issue to attention.

tom-gora avatar Aug 23 '24 10:08 tom-gora