Skip to content

jenspfahl/KeepAwake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gnome shell extension Keep Awake

Keep your computer awake! Prevent your computer from activating the screensaver, turning off your screen or suspending when it is idle for a while. One click disables screensaver/suspend. Click one more to make the change persistant between restarts (indicated by a small lock in the indicator icon). Click again to reenable screensavers and suspension.

This extension can be helpful when you present a presentation or are watching a video or are reading a document for a while or any else where your computer should be keep awake.

To get the latest released version for Gnome 3.34 or later, get it easily from extensions.gnome.org.

Note: If you want to use this extension for Gnome 3.34 and less, checkout tag legacy and install manually as followed.

Installation

Go to extensions.gnome.org and install Keep Awake directly from your browser.

Alternatively:

  1. Drop the KeepAwake@jepfa.de folder and its contents into ~/.local/share/gnome-shell/extensions/.
    One way to do this is as follows:

    mkdir git
    cd git
    git clone https://github.com/jenspfahl/KeepAwake.git
    mkdir -p ~/.local/share/gnome-shell/extensions
    cp -r KeepAwake/KeepAwake@jepfa.de ~/.local/share/gnome-shell/extensions/

    You can do ln -s instead of cp -r if you prefer.

  2. Restart gnome shell: Press Alt+F2, type r, press Enter.
    If that doesn't work (e.g. on Wayland): log out -> log in

  3. Install/Run gnome-tweak-tool (restart it if it was already running)

  4. Go to Extensions and activate KeepAwake.

Usage

When you have configured some screensaver or "sleep" powersaving settings, the icon looks like this.

Toggle it to deactivate all screensaver and powersaving settings. (A small lock icon indicates the setting is persistant between restarts.)

Now you can watch videos absolutely undisturbed!

Interna

This extension toggles following Gnome Settings:

From org.gnome.settings-daemon.plugins.power:

  • idle-dim: Time during dimm the screen when idle
  • sleep-inactive-ac-type: Suspend when idle and power cable is plugged
  • sleep-inactive-battery-type: Suspend when idle and power cable is unplugged (battery mode)

From org.gnome.desktop.session:

  • idle-delay: Time during turn off the screen when idle

From org.gnome.desktop.screensaver:

  • idle-activation-enabled: Activate screensaver when idle