aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-10-21 20:46:13 +0100
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-10-21 20:46:13 +0100
commite66c28134c77d53b6f456e49780c86a78e3090ef (patch)
tree71e185bf756471ff88b2349ffb685f210bc24409 /modules
parent71c3c2fc730c4ca12ad131e564beef274355485b (diff)
Added backlight module
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