Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/atx/wtype
xdotool type for wayland
https://github.com/atx/wtype
Last synced: 3 months ago
JSON representation
xdotool type for wayland
- Host: GitHub
- URL: https://github.com/atx/wtype
- Owner: atx
- License: mit
- Created: 2019-05-30T20:21:39.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-27T06:46:45.000Z (9 months ago)
- Last Synced: 2024-08-17T12:51:32.106Z (5 months ago)
- Language: C
- Size: 57.6 KB
- Stars: 363
- Watchers: 6
- Forks: 13
- Open Issues: 30
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wtype
xdotool type for wayland[![Packaging status](https://repology.org/badge/vertical-allrepos/wtype.svg)](https://repology.org/project/wtype/versions)
## Building
```
meson build
ninja -C build
sudo ninja -C build install
```## Usage
```
# Type unicode characters
wtype ∇⋅∇ψ = ρ
```To press/release modifiers, `-M`/`-m` can be used respectively.
```
# Press Ctrl+C
wtype -M ctrl c -m ctrl
```To alter delay between keystrokes, `-d`.
```
# delay of 0 when typing "foo", 120ms on "bar"
wtype foo -d 120 bar# also applied on stdin
echo everything | wtype -d 12 -
```To press/release a named key (as given by [xkb_keysym_get_name](https://xkbcommon.org/doc/current/group__keysyms.html)),
`-P`/`-p` can be used.```
# Press and release the Left key
wtype -P left -p left
```Note that when wtype terminates, all the pressed keys/modifiers get released, as the compositor destroys the associated
virtual keyboard object. To help performing a more complicated sequence of key presses, `-s` can be used to insert delays into the stream of key events.```
# Hold the Right key for 1000ms
wtype -P right -s 1000 -p right
```