Skip to main content

Simple auto-clicker for keeping your computer awake

Project description

cafeden

Overview

cafeden (from Vietnamese "cafe đen" or "black coffee") is a simple auto-clicker for keeping your computer awake. It monitors mouse and keyboard events to detect when the user is idle.

How to run

  1. Download and install Python 3

  2. Open a terminal (e.g. cmd on Windows) and install the package with PIP

    pip install cafeden
    
  3. Next, launch the application by running in the terminal:

    cafeden
    

    Note: make sure the Python Scripts directory is in your PATH (e.g. C:\Users\myuser\AppData\Local\Programs\Python\Python3x\Scripts)

  4. A system tray icon with a phin cà phê will appear. To quit the application, right-click on the icon and click on "Exit".

Configuration

Configuration is optional and is done through an INI configuration file. To setup the configuration, create a file named .cafeden in your home directory (e.g. ~/.cafeden in Linux and C:\Users\myuser\.cafeden in Windows systems). Default values, allowed sections and options are shown below.

[general]
# Time in seconds since the last mouse/keyboard event from which the user is considered to be idle
# Default: 45 seconds
idle_threshold = 1
# Action rate in seconds
# Default: 1 second
rate = 1

[mouse]
# Mouse action to perform, can be one of:
#   - click: perform a left click
#   - move: move the cursor between current position and the one specified in option 'position'
#   - wheel: scroll the wheel back and forth
# The rest of the configuration in this section is ignored if no action is supplied.
action = click
# Position as in: x, y. Empty means perform the action wherever the mouse is
position =

[keyboard]
# Keyboard action to perform, can be one of:
#   - press: press the specified key
#   - release: release the specified key
#   - press and release: press and release the specified key
# The rest of the configuration in this section is ignored if no action is supplied.
action = press and release
# Key to press and release. Some examples of special keys that can be used:
#    esc, enter, delete, ctrl, shift, right ctrl, left ctrl, right shift, left shift,
#    left, up, down, right, space, esc, backspace, tab, scroll lock, print screen, insert,
#    pause, caps lock, num lock, windows, alt, menu, page down, page up, play/pause media
key = ctrl

OS Supported

  • Windows 10
  • GNU/Linux (not tested)
    • requires one of: Xorg, GNOME and Ubuntu
    • requires running as root
  • macOS (not tested)

License

Copyright © 2021 Coredump Labs

Licensed under MIT: https://opensource.org/licenses/MIT

Project details


Download files

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

Source Distribution

cafeden-0.2.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

cafeden-0.2.0-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file cafeden-0.2.0.tar.gz.

File metadata

  • Download URL: cafeden-0.2.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.2 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.5

File hashes

Hashes for cafeden-0.2.0.tar.gz
Algorithm Hash digest
SHA256 24b0352a3d94b8ee623b79a7317cb8bfc867838b598148e16b0cb125f4f0d8fb
MD5 1d64542d39f995161b771b9b76f1765e
BLAKE2b-256 c2eadcc4db812cdead7716e56361e2a3b19e8a39b1347d306044c9d2766fec14

See more details on using hashes here.

File details

Details for the file cafeden-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: cafeden-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.2 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.5

File hashes

Hashes for cafeden-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 100d8ff14dd5d32b5a0f0670813a28dcb1c7ac523fc111b63d46df609fa0303f
MD5 06d1dd703a9eeff0c3c2ef29a27abc15
BLAKE2b-256 b8bdf025c9503e723bcf044864f0bd86ad59ee7440bbef7debe06ab4145c87a5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page