diff options
Diffstat (limited to 'modules/backlight')
-rwxr-xr-x | modules/backlight | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/backlight b/modules/backlight new file mode 100755 index 0000000..2e4fe88 --- /dev/null +++ b/modules/backlight @@ -0,0 +1,13 @@ +#!/bin/bash + +# Prints the backlight percentage +# Requires the light package + +PREFIX='ﯧ' + +get_backlight() +{ + echo "$PREFIX $(light | sed 's/\..*//g')%" +} + +get_backlight |