Skip to content

Instantly share code, notes, and snippets.

@myerspliers
Created March 18, 2020 23:10
Show Gist options
  • Save myerspliers/89bc7f9257b659ac239e2911ebad5e9e to your computer and use it in GitHub Desktop.
Save myerspliers/89bc7f9257b659ac239e2911ebad5e9e to your computer and use it in GitHub Desktop.
; Make Shift+Insert always paste the clipboard for WSL ubuntu.exe
; Keep regular shift insert as normal as possible, because
; this inserts kind of slow. It's not as slow as SendRaw, but slower
; than a real Shift+Insert.
+Ins::
WinGet, aProcess, ProcessName, A
if (aProcess == "ubuntu.exe") {
SendInput %clipboard%
}
else {
SendInput {shift down}{insert}{shift up}
}
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment