Add set_warmth, a script to somewhat intelligently set your screen temperature.
This commit is contained in:
parent
2b966da04c
commit
03b94341fd
11
set_warmth
Executable file
11
set_warmth
Executable file
@ -0,0 +1,11 @@
|
|||||||
|
#!/bin/sh -e
|
||||||
|
|
||||||
|
x=$(date|cut -f5 -d' '|cut -f1 -d:)
|
||||||
|
|
||||||
|
brownout $(bc -e "define redlevel(x) {
|
||||||
|
if((x-12) <= 0)
|
||||||
|
return((83*(12-x)))
|
||||||
|
else
|
||||||
|
return((83*(x-12)))
|
||||||
|
} redlevel($x)")
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user