防止计算机进入非活动模式
qaffeine的Python项目详细描述
卡芬
防止计算机进入非活动模式的小工具。可以在终端或通知区域中运行。用python 3和qt 5编写。
与Linux、OS/X和Windows兼容。
要求
- Python3
- Pyside2
- pyautogui
安装
使用pip
#pip3 install qaffeine
这将自动拉取依赖项。
使用源树中提供的setup.py
#python3 setup.py install
用法
命令行
语法:
$ qaffeine-cli -h
usage: Prevent computer inactivity by simulating key presses
[-h] [-n] [-d DELAY] [-k KEY] [-v]
optional arguments:
-h, --help show this help message and exit
-n, --nogui Don't start a GUI, only a operate in text mode
-d DELAY, --delay DELAY
Delay between key presses in seconds [default: 5] -
only valid with --nogui
-k KEY, --key KEY Key to press [default: altright]; see keys.txt for a
list of valid values - only valid with --nogui
-v, --version Show version number and exit
图形用户界面
不带任何参数运行qaffine将启动图形界面。然后,qaffeine在通知区域中运行。