Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Thousands is probably hyperbole, but there are many, many!

One that I find regular use for when copy+paste does not work because I am either connected to a terminal emulation, vm, or something of the like is typeitforme. It takes the contents of a text file and sends them through the keyboard buffer after a few second delay (that allows me time to switch focus to the window I want the typing done).

I currently have it as a entry in my ~/.bash_aliasas file.

alias typeitforme='sleep 3 && xdotool type --file '

This works in stock Ubuntu Linux. You can check out the xdotool documentation for ideas how to refine it to do more.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: