Metadata-Version: 2.1
Name: pyydotool
Version: 1.0.0
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) >= 1.0.1

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("29:1", "56:1", "59:1", "59:0", "56:0", "29:0") # press and release 'LeftCtrl+LeftAlt+F1'
ydo.sleep(0.5).type("echo 'foo bar'")
# execution is done here
ydo.exec()
```

# Requirements
- Ydotool >= 1.0.1

- Access to `/dev/uinput` device is required. It can be set by adding `udev` rules.<br>
Example tested for 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. 
