Dotfiles-dwm/dwmbar/modules/backlight

14 lines
173 B
Plaintext
Raw Permalink Normal View History

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