This repository is archived. The current version of volbright is here in my dotfiles
An event-driven shell script to show you your info ~
- backlight brightness
- volume
- keyboard brightness
Dependencies:
- pipewire-pulseaudio (or pulseaudio)
- inotify-tools
- dunst
- a nerd font
For the best experience, edit your dunstrc to add an override:
[brightness-watcher]
# appname: whatever $APPNAME is in the script
appname = "vlk-brightness-audio-watcher"
format = "%s"
icon_position = off
alignment = center
After this, edit volbright.sh
to match your system configuration.
# poke around in /sys/class/backlight until you find something
BACKLIGHT_PATH="/sys/class/backlight/path/to/device"
# Your system may or may not have a nice and easy way to get the keyboard backlight state
KEYBOARD_PATH="/sys/class/leds/path/to/keyboard"
BRIGHTNESS_COLOR='#ffffff'
KEYBOARD_COLOR='#99c1f1'
VOLUME_COLOR='#8ff0a4'
#GOOD_COLOR='#57e389'
WARN_COLOR='#f8e45c'
URGENT_COLOR='#ff7800'
CRITICAL_COLOR='#ed333b'
To run the script, all you need to do is run volbright.sh --help
This script was inspired by a similar script by u/NmoleoSoftware from Reddit