Skip to content
forked from Dzejrou/twbl

Simple program to control screen brightness on openSUSE Tumbleweed

Notifications You must be signed in to change notification settings

ematsumiya/twbl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Tumbleweed Backlight

Had some trouble getting xbacklight to work on openSUSE Tumbleweed, so I wrote this simple program that should work around it. Requires root, a workaround can be found at stackoverflow.

The values of the fname and max_fname variables might need to be changed to the correct path to your backlight brightness files.

Compilation:

g++ -std=c++11 -o twbl twbl.cpp

Usage (i3 config):

bindsym XF86MonBrightnessUp exec sudo /home/dzejrou/bin/twbl +100 # increase screen brightness
bindsym XF86MonBrightnessDown exec sudo /home/dzejrou/bin/twbl -100 # decrease screen brightness

TODO

  • Create a Makefile
  • Find a way to not need sudo
  • (RFC) Maybe change granularity of increment/decrement (e.g. "./twbl +1" makes no difference at all, up until 1000)

About

Simple program to control screen brightness on openSUSE Tumbleweed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 100.0%