Skip to content

Instantly share code, notes, and snippets.

@ardianta
Last active September 25, 2015 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ardianta/ae0024360d08f48fec57 to your computer and use it in GitHub Desktop.
Save ardianta/ae0024360d08f48fec57 to your computer and use it in GitHub Desktop.
Tambahkan cahaya layar laptop (Kali Linux)
import os
cahaya = open('/sys/class/backlight/intel_backlight/brightness')
maxCahaya = open('/sys/class/backlight/intel_backlight/max_brightness')
minCahaya = int(maxCahaya.readline()) / 14
tambahCahaya = int(cahaya.readline()) + minCahaya
if(tambahCahaya < minCahaya*14 + minCahaya):
os.system('echo '+str(tambahCahaya)+' > /sys/class/backlight/intel_backlight/brightness')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment