dwmbar/modules/backlight

14 lines
173 B
Text
Raw Normal View History

2019-10-21 19:46:13 +00:00
#!/bin/bash
# Prints the backlight percentage
2019-10-21 20:01:29 +00:00
# Requires the light package
2019-10-21 19:46:13 +00:00
PREFIX='ﯧ'
get_backlight()
{
echo "$PREFIX $(light | sed 's/\..*//g')%"
}
get_backlight