https://github.com/mevdschee/type-clipboard.sh
Type the contents of the clipboard into a selected window (Linux X11 only)
https://github.com/mevdschee/type-clipboard.sh
autokey autokey-scripts clipboard keyboard-emulation linux-app typing x11-automation xdotool
Last synced: 4 months ago
JSON representation
Type the contents of the clipboard into a selected window (Linux X11 only)
- Host: GitHub
- URL: https://github.com/mevdschee/type-clipboard.sh
- Owner: mevdschee
- License: mit
- Created: 2025-08-27T22:07:40.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-08-28T05:22:24.000Z (4 months ago)
- Last Synced: 2025-08-28T06:39:07.857Z (4 months ago)
- Topics: autokey, autokey-scripts, clipboard, keyboard-emulation, linux-app, typing, x11-automation, xdotool
- Language: Shell
- Homepage:
- Size: 44.9 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# type-clipboard.sh
Linux bash script that types the contents of the clipboard into a selected window.
This is for IT professionals that need to type long passwords or keys into remote consoles.
The script will prompt you to select a window before it types the clipboard contents into it.
If the clipboard contains multiple lines, you can edit the text before typing using an edit window.
## Requirements
- Linux X11 session (not Wayland)
- `xdotool` (for window selection and typing)
- `xclip` (for clipboard access)
- `yad` (for multiline editing/confirmation)
When you run the script for the first time, it will check for these dependencies and suggest how to install them if they are missing.
## Usage
```
[sudo] bash type-clipboard.sh [install|remove|-h|--help]
```
- `install` - Install the script and shortcut (requires root privileges)
- `remove` - Remove the script and shortcut (requires root privileges)
- `-h`, `--help` - Show help message
**Note:** You may need to prepend `sudo` to the script to execute it with root privileges.
## Files
When installing the script the follow installation paths are used:
- Script: `/usr/local/bin/type-clipboard`
- Shortcut: `/usr/share/applications/type-clipboard.desktop`
After installing the shortcut, the application should be easy to add to your menu or panel. The shortcut database is updated automatically and the application will appear as "type-clipboard".
## License
MIT License (see [LICENSE](LICENSE) file)
## Some other tools
- [xdotool-type-clipboard - A simple bash script using xdotool and a delay](https://github.com/POMATu/xdotool-type-clipboard)
- [TypeClipboard - A Windows application written in C#](https://github.com/jlaundry/TypeClipboard)
- [PyTyper - A Python implementation of a clipboard typer](https://github.com/DoingFedTime/PyTyper)