Guest User

Untitled

a guest
Jan 19th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #!/bin/bash
  2. x=1 y=1 z=1 o=$(xrandr|grep primary|cut -d' ' -f1)
  3. f(){ bc<<<"scale=5;x=$1;y=($RANDOM/32767-0.5)/10;if(x+y>0.5&&x+y<1.5)x+=y;print x;";}
  4. trap "xrandr --output \"$o\" --gamma '1:1:1'" EXIT
  5. while true; do
  6. x=$(f $x) y=$(f $y) z=$(f $z)
  7. xrandr --output "$o" --gamma "$x:$y:$z"
  8. sleep 0.1
  9. done
Add Comment
Please, Sign In to add comment