Move remaining code out of bin
[khatus.git] / bin / khatus_sensor_screen_brightness
diff --git a/bin/khatus_sensor_screen_brightness b/bin/khatus_sensor_screen_brightness
deleted file mode 100755 (executable)
index 9b075d3..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-#! /bin/sh
-
-set -e
-
-screen_brightness_device_path="$1"
-
-awk '
-    BEGIN {
-        OFS = msg_fs ? msg_fs : "|"
-        Kfs = key_fs ? key_fs : ":"
-    }
-
-    FILENAME ~ "/max_brightness$" {max = $1; next}
-    FILENAME ~     "/brightness$" {cur = $1; next}
-    END                           {print("percentage", (cur / max) * 100)}
-' \
-"$screen_brightness_device_path/max_brightness" \
-"$screen_brightness_device_path/brightness"
This page took 0.025084 seconds and 4 git commands to generate.