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