Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vittoriocandolo/gojolt
Inhibit screen blank and automatic suspend on GNOME Shell
https://github.com/vittoriocandolo/gojolt
d-bus gnome-shell godbus golang screensaver-disabler
Last synced: 3 days ago
JSON representation
Inhibit screen blank and automatic suspend on GNOME Shell
- Host: GitHub
- URL: https://github.com/vittoriocandolo/gojolt
- Owner: vittoriocandolo
- License: bsd-2-clause
- Created: 2023-05-25T16:38:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-25T18:18:01.000Z (over 1 year ago)
- Last Synced: 2024-11-18T23:54:13.213Z (2 months ago)
- Topics: d-bus, gnome-shell, godbus, golang, screensaver-disabler
- Language: Go
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gojolt
gojolt is a simple program that keeps your screen awake preventing screen blank and automatic suspension.
It uses [dbus](https://github.com/godbus/dbus) to interact with the D-Bus message system.
It works both on Gnome Shell on Xorg and on Wayland.
## Installation
Binaries are provided under the [Releases](https://github.com/vittoriocandolo/gojolt/releases) section.
Most Linux systems should be able to run them.
### Building from source
**golang 1.20+ is required**
Simply clone this repo and run `go build -o gojolt -ldflags="-s -w" main.go`
gojolt is currently based on dbus v5.1.0.
## Usage
It's a CLI program.
You can place it in your PATH (in `/usr/local/bin/` for example) and then run it with a terminal command like this: `gojolt 20`
The amount of time (in minutes) of screen blank inhibition has to be passed as first and only argument.