diff options
Diffstat (limited to 'app/xlockmore/etc/xlocksat.pl')
-rw-r--r-- | app/xlockmore/etc/xlocksat.pl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/xlockmore/etc/xlocksat.pl b/app/xlockmore/etc/xlocksat.pl new file mode 100644 index 000000000..5460b22da --- /dev/null +++ b/app/xlockmore/etc/xlocksat.pl @@ -0,0 +1,8 @@ +#!/usr/bin/perl -T -w +# xlocksat +require "ctime.pl"; + +#local($hour) = `/bin/date "+%H:"`; +local($hour) = (localtime)[2]; +local($saturation) = (12 - abs($hour - 12)) / 12 ; +printf("%.2f\n", $saturation); |