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

Append title to window #1774

Closed
fefo-dev opened this issue Sep 19, 2020 · 2 comments
Closed

Append title to window #1774

fefo-dev opened this issue Sep 19, 2020 · 2 comments

Comments

@fefo-dev
Copy link

There's a number of features that don't play together well and I'm using a shortcut for each as a profile, but it gets confusing as most don't change the window in any way.

A quick solution I thought was appending a description over/with the device name. Dunno if this can be easily done through each OS or another flag is required, but an --append-title "My gaming profile" doesn't sound too damaging in my head.

Thanks as always.

@rom1v
Copy link
Collaborator

rom1v commented Sep 19, 2020

One solution could be to introduce variable replacement in the title (replaced on the server side). See #606

scrcpy --window-title '%n My gaming profile'

But it's not implemented.

A workaround could be to first retrieve the device name via adb then use it in the title. In Bash:

scrcpy --window-title "$(adb shell getprop ro.product.model) My gaming profile"

@fefo-dev
Copy link
Author

So... the flag already exists? lol

The append part was a what if scenario, for those who want to keep the model (multiple phones, etc). The --window-title is exactly what I needed, so I'm closing it since I don't see much beyond the referenced issue. Thanks a lot, had no luck with the search and might glossed over an important thing or two.

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

2 participants