How to Install caffeine in Ubuntu 18.04

Install caffeine by entering the following commands in the terminal:

sudo apt update
sudo apt install caffeine


prevent the desktop becoming idle in full-screen mode

Caffeine prevents the desktop from becoming idle when an application is running full-screen. A desktop indicator ‘caffeine-indicator’ supplies a manual toggle, and the command ‘caffeinate’ can be used to prevent idleness for the duration of any command.


Version: 2.9.4-1

Section: universe/misc