aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorArchie Hilton (thytom) <archie.hilton1@gmail.com>2019-10-21 20:57:19 +0100
committerArchie Hilton (thytom) <archie.hilton1@gmail.com>2019-10-21 20:57:19 +0100
commit474487326dae78fd6f12fe523bfd5112ea2b7e22 (patch)
tree4c8b240726963509918e62c78abe319e0804dd4f /modules
parent3f3666d5c01726b231676c61fa54a6ae50e740ec (diff)
parentf0614fafcc83b463d22df30744bd931ff5ec0841 (diff)
Merge branch 'master' of github.com:thytom/dwmbar
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