You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jesse Laprade 0dcfe84f25 updated readme hierarchy 4 months ago
LICENSE Rename license to LICENSE 4 years ago
README.md updated readme hierarchy 4 months ago
plight Changed values from light to plight and added an if statement if value goes below 0 4 years ago

README.md

plight

No longer in development

A perl script to adjust the brightness so you don't have to type a long file path everytime you want to change the brightness.

I made this because I couldn't get xbacklight working on my laptop. I also wanted to make a shortcut key for changing brightness and this was my solution.

Usage

sudo cp plight /usr/local/bin/

sudo plight set <number>

sudo plight inc <number>

sudo plight dec <number>

sudo plight current

sudo plight help

Usage without using sudo or root

I've just added an entry to root's crontab to allow regular users to edit the brightness file: sudo crontab -e then add @reboot chmod o+rw /sys/class/backlight/intel_backlight/brightness and save.

If you do this, you could always just put the plight script in your $PATH and then you would'nt have to worry about putting it in /usr/local/bin :).

Note

Your path to the "brightness" file may differ depending on your computer.