We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
is possible, but the timer option is better because of apps like iTerm that copy directly to the clipboard without the user pressing cmd+c
In any case, here's the code that hooks into cmd+c
local in_copy = false local copy = hs.eventtap.new({hs.eventtap.event.types.keyDown, hs.eventtap.event.types.keyUp}, function (event) if event:getCharacters() == 'c' and event:getFlags().cmd then if event:getType() == hs.eventtap.event.types.keyDown then in_copy = true else if in_copy then in_copy = false just_copied = hs.pasteboard.getContents() hs.printf('just copied ' .. just_copied) end end end end copy:start()
Thanks for sharing your code, much appreciated :)
The text was updated successfully, but these errors were encountered:
@asharpe your solution worked perfectly, thank you so much!
Sorry, something went wrong.
No branches or pull requests
is possible, but the timer option is better because of apps like iTerm that copy directly to the clipboard without the user pressing cmd+c
In any case, here's the code that hooks into cmd+c
Thanks for sharing your code, much appreciated :)
The text was updated successfully, but these errors were encountered: