๐Ÿ“ฆ REALERvolker1 / volbright

An event-driven shell script to show you your info

โ˜… 8 stars โ‘‚ 0 forks ๐Ÿ‘ 8 watching โš–๏ธ GNU General Public License v3.0
๐Ÿ“ฅ Clone https://github.com/REALERvolker1/volbright.git
HTTPS git clone https://github.com/REALERvolker1/volbright.git
SSH git clone git@github.com:REALERvolker1/volbright.git
CLI gh repo clone REALERvolker1/volbright
volker1 volker1 Archive project a9a362b 2 years ago ๐Ÿ“ History
๐Ÿ“‚ main View all commits โ†’
๐Ÿ“„ LICENSE
๐Ÿ“„ README.md
๐Ÿ“„ volbright.sh
๐Ÿ“„ README.md

This repository is archived. The current version of volbright is here in my dotfiles

volbright

An event-driven shell script to show you your info ~

  • backlight brightness
image

  • volume
image

  • keyboard brightness
image

Usage

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

Credits

This script was inspired by a similar script by u/NmoleoSoftware from Reddit