aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/backlight12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/backlight b/modules/backlight
new file mode 100644
index 0000000..d1dfd01
--- /dev/null
+++ b/modules/backlight
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+# Prints the backlight percentage
+
+PREFIX='ﯧ'
+
+get_backlight()
+{
+ echo "$PREFIX $(light | sed 's/\..*//g')%"
+}
+
+get_backlight