Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swap the order of "mpv" and filename in the window title #2188

Closed
DerpMcDerp opened this issue Aug 3, 2015 · 5 comments
Closed

Swap the order of "mpv" and filename in the window title #2188

DerpMcDerp opened this issue Aug 3, 2015 · 5 comments

Comments

@DerpMcDerp
Copy link

If no --title is set, the window title displays as "mpv - $name". It should display as "$name - mpv" instead.

Or even better, don't display the " - mpv" part at all.

@wiiaboo
Copy link
Member

wiiaboo commented Aug 3, 2015

--title="${?media-title:${media-title}}${!media-title:No file.}"
You can do this yourself in mpv.conf.

@qguyot
Copy link

qguyot commented Aug 3, 2015

I set it up to be "$media-title - mpv" a long time ago, but I agree with @DerpMcDerp that it should be the default, if only for consistency's sake.
Apart from mpv, I've never encountered any program whose title bar displayed something in the "Program - Document" format, and everything has a "Document - Program" format.

@lvml
Copy link

lvml commented Aug 8, 2015

The "Program - Document" format makes it most easy to match the window title in configuration files of window managers, where you e.g. might want to configure that "Program*" windows are always kept "above" other windows or window manager elements (except for screen locks, of course).

Thus I'd vote for keeping the current default.

@qguyot
Copy link

qguyot commented Aug 9, 2015

The "Program - Document" format makes it most easy to match the window title in configuration files of window managers, where you e.g. might want to configure that "Program*" windows are always kept "above" other windows or window manager elements (except for screen locks, of course).

If your WM supports "Program * ", it likely supports " * Program" as well.

I think the reason almost every program favors a "Document - Program" window title is that in a win95-esque taskbar (or any kind of task switcher where there's limited amount of space), in some cases, a "Program - Document" title would only show the program's name (information that is always conveyed typically by the icon, ergo redundant) plus too little of the document's name to distinguish between two windows of the same program.
That doesn't happen often with mpv because 1. mpv's a pretty short name and 2. you usually don't have two open windows of mpv at the same time, but it happened to me once or twice (which was a factor in changing mpv's window title on my config).

In any case it's a low effort change (I assume), for a low reward (the only win here would be consistency, which to be fair is a pretty important usability factor)

@mia-0
Copy link
Member

mia-0 commented Aug 9, 2015

If you want to match mpv with your WM, use the class (which is “mpv” unless you change x11-name), not its title.

I don’t really care about the window title format, but it can’t hurt to bring it in line with other software.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants