diff options
Diffstat (limited to 'bin/bright')
-rwxr-xr-x | bin/bright | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -12,7 +12,7 @@ get_b() b=$(brightnessctl --class=backlight get) || return 1 printf '%.0f\n' $(printf \ - 'scale = 4;'$(: \ + 'scale = 20;'$(: \ )'((%d - 1) * sqrt((%d - %d) * (%d - (2 * %d - %d)))) / '$(: \ )'(%d - %d)\n' \ ${STEPS} ${MIN} ${b} ${b} ${max} ${MIN} ${max} ${MIN} | bc) @@ -26,7 +26,7 @@ set_b() shift 1 brightnessctl --class=backlight set $(printf '%.0f\n' $(printf \ - 'scale = 4;'$(: \ + 'scale = 20;'$(: \ )'%d + (1 - sqrt(1 - (%d / (%d - 1))^2)) * (%d - %d)\n' \ ${MIN} ${b} ${STEPS} ${max} ${MIN} | bc)) || return 1 |