Metadata-Version: 2.1
Name: pyydotool
Version: 0.5.2
Summary: Python bindings to ydotool
Home-page: https://gitlab.com/jdsieci/pyydotool
License: LGPL-3.0-or-later
Author: Jerzy Drozdz
Author-email: jerzy.drozdz@jdsieci.pl
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
Classifier: Programming Language :: Python :: 3
Project-URL: Repository, https://gitlab.com/jdsieci/pyydotool
Description-Content-Type: text/markdown

# PyYdotool

Python bindings for [`ydotool`](https://github.com/ReimuNotMoe/ydotool)

This project was inspired by [pyxdotool](https://github.com/cphyc/pyxdotool)

All `ydotool` commands are chainable.

# Example
```python
from ydotool import YdoTool
ydo = YdoTool().key("ctrl+alt+f1")
ydo.sleep(2000).type("echo 'foo bar'")
# execution is done here
ydo.exec()
```

# Requirements
Access to `/dev/uinput` device is required. It can be set by adding `udev` rules.<br>
Example tested on Fedora:
#### **`/etc/udev/rules.d/60-uinput.rules`**
```shell
KERNEL=="uinput", SUBSYSTEM=="misc", TAG+="uaccess", OPTIONS+="static_node=uinput"
```

This rules will allow regular user logged in to the machine to access `uinput` device. 
