diff options
author | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-10-21 20:46:13 +0100 |
---|---|---|
committer | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-10-21 20:46:13 +0100 |
commit | e66c28134c77d53b6f456e49780c86a78e3090ef (patch) | |
tree | 71e185bf756471ff88b2349ffb685f210bc24409 /modules/backlight | |
parent | 71c3c2fc730c4ca12ad131e564beef274355485b (diff) |
Added backlight module
Diffstat (limited to 'modules/backlight')
-rw-r--r-- | modules/backlight | 12 |
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 |