• Stars
    star
    557
  • Rank 79,968 (Top 2 %)
  • Language
    JavaScript
  • License
    GNU General Publi...
  • Created over 12 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Disable screensaver and auto suspend

gnome-shell-extension-caffeine

License GitHub release (latest by date)

Enable / disable auto suspend with quick setting toggle.

Quick Toggle Caffeine

Version

This extension supports GNOME Shell 3.4 -> 44

Branch Version Compatible Gnome version
master 46 Gnome 43 -> 44
gnome-shell-40-42 42 Gnome 40 -> 42
gnome-shell-3.36-3.38 37 Gnome 3.36 -> 3.38
gnome-shell-3.32-3.34 33 Gnome 3.32 -> 3.34
gnome-shell-3.10-3.30 - Gnome 3.10 -> 3.30
gnome-shell-before-3.10 - Gnome 3.4 -> 3.8

Installation From source

make build
make install
  • Restart the shell
  • Enable the extension

Screenshots & features

Scroll Indicator Icon

ScreenshotScreenshot

You can scroll on the indicator icon to enable / disable auto suspend:

  • Scroll up -> Filled cup: Caffeine enabled
  • Scroll down -> Empty cup: Caffeine disabled

Note: the option "Show status indicator" must be set on "always" (see below).

Notifications

Screenshot Screenshot

Timer option

This option enable Caffeine for a given amount of time (similar to Caffeine in LineageOS).

ScreenshotScreenshot

Preferences

Preferences

CLI

  • Get current state:
    gsettings --schemadir ~/.local/share/gnome-shell/extensions/[email protected]/schemas/ get org.gnome.shell.extensions.caffeine toggle-state
  • Enable Caffeine:
    gsettings --schemadir ~/.local/share/gnome-shell/extensions/[email protected]/schemas/ set org.gnome.shell.extensions.caffeine toggle-state true
  • Disable Caffeine:
    gsettings --schemadir ~/.local/share/gnome-shell/extensions/[email protected]/schemas/ set org.gnome.shell.extensions.caffeine toggle-state false

--schemadir — path to the extension schemas directory. It may be different on your system.