Skip to main content

Caffeine

https://launchpad.net/caffeine/

Caffeine is a background program that prevents the desktop from becoming idle (and hence the screen saver or screen lock from activating) when the active window is full-screen.

Note that Caffeine currently only works on X11; this is a limitation of xdg-utils, which Caffeine uses to inhibit desktop idleness.

Also provided are an indicator, caffeine-indicator, that gives a manual toggle, and caffeinate, which allows desktop idleness to be inhibited for the duration of any command. See their man pages for more information.

Caffeine is distributed under the GNU General Public License, either version 3, or (at your option) any later version. See COPYING.

The Caffeine SVG icons are Copyright (C) 2009 Tommy Brunn (http://www.blastfromthepast.se/blabbermouth), and distributed under the terms of the GNU Lesser General Public License, either version 3, or (at your option) any later version. See COPYING.LESSER.

Caffeine requires the Python packages ewmh, python-xlib, and PyGObject, the C libraries Gtk3, AyatanaAppIndicator and Keybinder, and the xdg-utils command-line utilities.

Configuration

Caffeine Indicator’s global keyboard shortcut can be configured in dconf-editor at the path /org/sc3d/caffeine-indicator/binding. The default is Super+Ctrl+C (the “Super” key is typically the Windows key or equivalent).

Installation

Caffeine is distributed in Debian and its derivatives, where you can use your distribution’s software centre to install it, or in a terminal:

apt install caffeine

Caffeine is also available in the Python Package Index, under the name “cups- of-caffeine”, but installing the Python package does not currently take care of non-Python dependencies.

If you think you’ve found a bug

Try running, in a terminal:

window_id=`xwininfo | grep "Window id" | cut -d " " -f 4`

Now click on the terminal window, and then run:

xdg-screensaver suspend $window_id
xdg-screensaver resume $window_id

This performs the same steps at a lower level as turning Caffeine on then off again manually. If this gives the same problem as using Caffeine, then the bug is definitely not in Caffeine.

Testing translations

If you want to test out a translation without changing the language for the whole session, run caffeine as e.g.: LANGUAGE=ru ./caffeine

To compile the translations: ./update_translations.py (this is done automatically when building the package, so no need to do it normally).

You will need a language pack for the given language. Be aware that some stock items will not be translated unless you log in with a given language.

Metadata

Release files for cups-of-caffeine 2.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cups-of-caffeine 2.10.0
File Size Uploaded
cups_of_caffeine-2.10.0.tar.gz 125.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cups-of-caffeine 2.10.0
File Interpreter ABI Platform
cups_of_caffeine-2.10.0-py3-none-any.whl Python 3 none any Details

Total release size: 264.2 kB

Release files / cups_of_caffeine-2.10.0.tar.gz

Download URL cups_of_caffeine-2.10.0.tar.gz
Size 125.7 kB
Tags Source
SHA-256 checksum
How to use checksums
490b437abebd422edd6b0efa6fcd9eeaa3c50e84fd144e1df6a18012bca143f9
BLAKE2b-256 checksum
How to use checksums
db6c9f0dfdae93b3bb94ad158851fb4c83cd187df1af7be6b095cb3cac14c25f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / cups_of_caffeine-2.10.0-py3-none-any.whl

Download URL cups_of_caffeine-2.10.0-py3-none-any.whl
Size 138.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
19cb25ca7b6b20d4823882bbeaa94e3465aa59f6565a15df67e622508f9155b4
BLAKE2b-256 checksum
How to use checksums
319cef43b6ea22ca8b29c2fb28ed3a77eb874c647bc4724870581479ea525d2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

2.10.1

2 release files

This release

2.10.0 This release

2 release files

2.9.12

2 release files

2.9.11

2 release files

2.9.10

2 release files

2.9.9

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page