Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eonpatapon/gnome-shell-extension-caffeine
Disable screensaver and auto suspend
https://github.com/eonpatapon/gnome-shell-extension-caffeine
Last synced: 1 day ago
JSON representation
Disable screensaver and auto suspend
- Host: GitHub
- URL: https://github.com/eonpatapon/gnome-shell-extension-caffeine
- Owner: eonpatapon
- License: gpl-2.0
- Created: 2012-06-07T18:19:08.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2024-12-24T13:34:32.000Z (18 days ago)
- Last Synced: 2025-01-03T13:06:02.109Z (8 days ago)
- Language: JavaScript
- Size: 2.26 MB
- Stars: 599
- Watchers: 19
- Forks: 108
- Open Issues: 35
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
- stars - eonpatapon/gnome-shell-extension-caffeine
- awesome-mpv - gnome-shell-extension-caffeine - Prevent the display from turning off (Gnome doesn't support the idle-inhibit protocol on Wayland) and disable the 'night light' when a mpv window is in focus. (Other)
README
# gnome-shell-extension-caffeine
[](https://extensions.gnome.org/extension/517/caffeine/)
[![License](https://img.shields.io/github/license/eonpatapon/gnome-shell-extension-caffeine)](https://github.com/eonpatapon/gnome-shell-extension-caffeine/blob/master/LICENSE)
[![GitHub release (latest by date)](https://img.shields.io/github/v/tag/eonpatapon/gnome-shell-extension-caffeine)](https://github.com/eonpatapon/gnome-shell-extension-caffeine/releases/latest)Enable / disable auto suspend with quick setting toggle.
![Quick Toggle Caffeine](screenshots/screenshot.png)
## Version
This extension supports GNOME Shell `3.4` -> `45`
|Branch |Version|Compatible GNOME version|
|-------------------------|:-----:|------------------------|
| master | 53 | GNOME 45 -> 46 |
| gnome-shell-43-44 | 51 | 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
```bash
make build
make install
```- Restart the shell
- Enable the extension## Screenshots & features
### Scroll Indicator Icon
![Screenshot](screenshots/screenshot-scroll-up.png)![Screenshot](screenshots/screenshot-scroll-down.png)
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](screenshots/screenshot-notification-enable.png)
![Screenshot](screenshots/screenshot-notification-disable.png)### Timer option
This option enable Caffeine for a given amount of time (similar to Caffeine in LineageOS).
![Screenshot](screenshots/screenshot-timer-off.png)![Screenshot](screenshots/screenshot-timer-on.png)
### Preferences
![Preferences](screenshots/screenshot-prefs.png)
## CLI
- Get current state:
```sh
gsettings --schemadir ~/.local/share/gnome-shell/extensions/[email protected]/schemas/ get org.gnome.shell.extensions.caffeine toggle-state
```
- Enable Caffeine:
```sh
gsettings --schemadir ~/.local/share/gnome-shell/extensions/[email protected]/schemas/ set org.gnome.shell.extensions.caffeine toggle-state true
```
- Disable Caffeine:
```sh
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.