https://github.com/cphyc/pyxdotool
Python bindings for xdotool
https://github.com/cphyc/pyxdotool
Last synced: 12 days ago
JSON representation
Python bindings for xdotool
- Host: GitHub
- URL: https://github.com/cphyc/pyxdotool
- Owner: cphyc
- License: mit
- Created: 2015-12-11T00:31:58.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-11T00:49:35.000Z (over 10 years ago)
- Last Synced: 2025-02-23T19:15:09.890Z (over 1 year ago)
- Language: Python
- Size: 3.91 KB
- Stars: 5
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyxdotool
Python bindings for xdotool.
It supports all the functions of xdotool and is fully chainable.
## Examples:
import xdotool
# you can chain your instructions
ins = pyxdotool.Instruction().mouseMoveRelative(100, 100).sleep(2).click()
# it is not executed until you do
ins.exec()
# the results of stdout / stderr are found in
ins = pyxdotool.Instruction().activeWindow().exec()
activeWindow = ins.stdout[0]['window']
wname = pyxdotool.Instruction().getWindowName(activeWindow).exec()
print(wname)