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

Could FocusIn/FocusOut mode be used? #4

Open
ypid opened this issue Nov 30, 2021 · 1 comment
Open

Could FocusIn/FocusOut mode be used? #4

ypid opened this issue Nov 30, 2021 · 1 comment

Comments

@ypid
Copy link

ypid commented Nov 30, 2021

I just stumbled over https://unix.stackexchange.com/questions/480052/how-do-i-detect-whether-my-terminal-has-focus-in-the-gui-from-a-shell-script

Sounds too good to be true. If this could be used, it would be one generic solution and no specific code for Tmux would be needed anymore (Edit: I might be wrong here. See the following comment). It could also solve Terminal emulators with multiple tabs and SSH. I am currently not motivated enough to test all this, mainly because on Qubes OS, the xprop -root _NET_ACTIVE_WINDOW does not work in VMs. When that is fixed/understood, I can return to this.

@Nanoseb
Copy link
Owner

Nanoseb commented Dec 1, 2021

That indeed looks pretty cool. Though, just did some quick tests and, as said in the comments of this answer, it doesn't seem to be working with tmux. But it works with ssh and probably tabs etc. that's already something.

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