Skip to content

Pasting current date on global hotkey only if specific apps have the focus #1647

Answered by hluk
Gitoffthelawn asked this question in Q&A
Discussion options

You must be logged in to vote

You can use currentWindowTitle().

if (/Konsole$/.test(currentWindowTitle())) {
    // Do something if a "Konsole" window has focus.
}

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Gitoffthelawn
Comment options

@Gitoffthelawn
Comment options

@hluk
Comment options

hluk May 3, 2021
Maintainer

@Gitoffthelawn
Comment options

@hluk
Comment options

hluk May 3, 2021
Maintainer

Answer selected by Gitoffthelawn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants