Skip to content

Bash script for screen brightness on Lenovo ThinkPad E530. This script can be called from the command line or by being bound to a key.

License

Notifications You must be signed in to change notification settings

perfectritone/intel_backlight_brightness

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

intel_backlight_brightness

Shell script for screen brightness on Lenovo ThinkPad E530. This script can be called from the command line or by being bound to a key.

To use

You may need to change the permissions of the brightness files to allow changes by the local user. sudo chmod +020 /sys/class/backlight/intel_backlight/brightness sudo chgrp wheel /sys/class/backlight/intel_backlight/ -R

Place the script, or add a link to ~/scripts/brightness.sh

Openbox

Add the following to your rc.xml

<keybind key="XF86MonBrightnessUp">
  <action name="Execute">
    <startupnotify>
      <enabled>true</enabled>
      <name>brighter</name>
    </startupnotify>
    <command>/home/aura/projects/brightness.bash +</command>
  </action>
</keybind>
<keybind key="XF86MonBrightnessDown">
  <action name="Execute">
    <startupnotify>
      <enabled>true</enabled>
      <name>dimmer</name>
    </startupnotify>
    <command>/home/aura/projects/brightness.bash -</command>
  </action>
</keybind>

sxhkd

Add the following to your sxhkdrc

XF86MonBrightnessUp ~/scripts/brightness.sh + XF86MonBrightnessDown ~/scripts/brightness.sh -

About

Bash script for screen brightness on Lenovo ThinkPad E530. This script can be called from the command line or by being bound to a key.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages