Skip to main content
Join the official 2020 Python Developers SurveyStart the survey!

Prevent your computer from entering inactivity modes

Project description


Little tool that prevents your computer from entering inactivity modes. Can run in a terminal or in the notification area. Written in Python 3 and Qt 5.

Compatible with Linux, OS/X and Windows.


  • Python 3
  • PySide2
  • pyautogui


Using PIP

#pip3 install qaffeine

This will pull the dependencies automatically.

Using the supplied in the source tree

#python3 install


Command line


$ 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


Running qaffeine without any argument starts the graphical interface. Qaffeine then runs in the notification area.



Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for qaffeine, version 0.1.post2
Filename, size File type Python version Upload date Hashes
Filename, size qaffeine-0.1.post2-py3-none-any.whl (30.9 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size qaffeine-0.1.post2.tar.gz (26.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page