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

[feature request] Add a custom window title format #93

Open
raphaelfournier opened this issue Dec 14, 2023 · 0 comments
Open

[feature request] Add a custom window title format #93

raphaelfournier opened this issue Dec 14, 2023 · 0 comments

Comments

@raphaelfournier
Copy link

I would like to be able to customise the window title of termdown. It's a great idea to have the time in the title. However, sometimes I would need a different time format (e.g., not the "human readable" one), or prefix/suffix it with something else (e.g., "-- termdown"), so that my WM may match the window with termdown.

I currently changed line 591 in file /usr/lib/python3.11/site-packages/termdown.py as follows:

os.write(stdout.fileno(), "\033]2;{0}\007".format(stopwatch_text+" -- termdown").encode())

It's very custom, so I don't make it a PR as is.

Thanks for the soft!

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

1 participant