From e66c28134c77d53b6f456e49780c86a78e3090ef Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Date: Mon, 21 Oct 2019 20:46:13 +0100 Subject: [PATCH] Added backlight module --- modules/backlight | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 modules/backlight 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