Skip to content
This repository has been archived by the owner on Dec 14, 2023. It is now read-only.

REALERvolker1/volbright

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

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

About

An event-driven shell script to show you your info

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages