Advertisement
Guest User

Untitled

a guest
Jan 17th, 2013
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. bright() {
  2. if [[ $# == 0 ]]
  3. then
  4. bright 976
  5. else
  6. # echo $1 | sudo tee /sys/devices/pci0000:00/0000:00:02.0/drm/card0/card0-LVDS-1/intel_backlight/brightness > /dev/null
  7. sudo /usr/bin/set-brightness $1
  8. fi
  9. }
  10. dark() {
  11. bright 1
  12. }
  13. alias d=dark
  14. alias b=bright
  15. i=0; while ((i<20)); do alias $i="bright $((50*i))"; ((i+=1)); done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement