Skip to content

A simple software-level brightness management tool for the commandline, built on Xrandr.

Notifications You must be signed in to change notification settings

notmax6677/glow.sh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

glow.sh

This script is meant to bridge the distance between the complicated usage of changing screen brightnesses with xrandr, and monkeys who can't be bothered to remember all of the documentation just to turn their screen down 5 brightness units.

Prerequisites

  • xrandr
  • tput
  • bc
  • grep
  • awk

Installation

You can install this file by either downloading it, curling it, or fetching it with wget.

wget

wget https://raw.githubusercontent.com/notmax6677/glow.sh/main/glow.sh

curl

curl https://raw.githubusercontent.com/notmax6677/glow.sh/main/glow.sh -o glow.sh

Afterwards just make it executable

chmod +x glow.sh

You can also take out the extension for simplicity

mv PATH_TO_FOLDER/glow.sh PATH_TO_FOLDER/glow

Usage

Get function

The get function is a very versatile tool, offering up to TWO FUNCTIONS with different capabilities.

The first one, get device, will show all active screen devices attached to your computer.

./glow get device

or

./glow get dev

The second function, being equally useful, is get brightness, it will fetch the brightness of a given screen.

./glow get brightness DEVICE_NAME

or

./glow get br DEVICE_NAME

The brightness will be shown from a scale of 0 to 1.0. 0 = 0% 1.0 = 100%

Set function

The set function seems pretty self-explanatory, it just sets the brightness of a given device.

Use it like this

./glow set DEVICE_NAME BRIGHTNESS

Please remember that BRIGHTNESS is on a scale from 0 to 1.

That's all there is to it, enjoy :)

About

A simple software-level brightness management tool for the commandline, built on Xrandr.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages