3 ms·
You might be able to do something like this automatically on Linux at least. You can have a job that asks the X server what the title of the focus window is, w
by imglorp 7y ago
You might be able to do something like this automatically on Linux at least. You can have a job that asks the X server what the title of the focus window is, which in the case of a browser will include the name of the active tab. In the case of a terminal, your prompt_command can set the tab or window title which would also get caught. Emacs can set its own frame title if you want that too. Etc. etc.
I suspect Hammerspoon on OSX could so something similar.
Pretty sure something like this exists for X11. If not, it would only be a few lines of shell code calling out to xlsclients, xwininfo, etc.
- j88439h84 7y agoI wonder how to do it on wayland