Dotfiles-dwm/dwmbar/modules/backlight
2024-06-02 14:02:06 +03:00

14 lines
173 B
Bash
Executable File

#!/bin/bash
# Prints the backlight percentage
# Requires the light package
PREFIX='ﯧ'
get_backlight()
{
echo "$PREFIX $(light | sed 's/\..*//g')%"
}
get_backlight