Skip to content

Instantly share code, notes, and snippets.

@TruncatedDinoSour
Created January 16, 2024 19:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TruncatedDinoSour/f37ec853ba1b3b7b7d49318fe8e39a1f to your computer and use it in GitHub Desktop.
Save TruncatedDinoSour/f37ec853ba1b3b7b7d49318fe8e39a1f to your computer and use it in GitHub Desktop.
how to type out a file, a variable, raw data, etc in xdotool as people dont like giving out direct answers it seems

how to type out a file, a variable, raw data, etc in xdotool as people dont like giving out direct answers it seems

its stupid, u literally just add -- to command line :

xdotool type -- 'your data here'

for example

xdotool type -- "$(cat file.txt)"

or

xdotool type -- "$MY_VARIABLE"

enjoy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment