forked from colonelpanic/dotfiles
[XMonad] Show current brightness when adjusting with volnoti
This commit is contained in:
9
dotfiles/lib/bin/show_brightness.sh
Executable file
9
dotfiles/lib/bin/show_brightness.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
actual="$(cat /sys/class/backlight/intel_backlight/actual_brightness)"
|
||||
max="$(cat /sys/class/backlight/intel_backlight/max_brightness)"
|
||||
|
||||
temp="$(( $actual * 100 ))"
|
||||
percentage="$(( $temp/$max ))"
|
||||
|
||||
volnoti-show "$percentage"
|
Reference in New Issue
Block a user