blob: 8e4bf06b501b55168d132c77fa55a4ae58011591 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
#!/bin/sh
device="/sys/class/$BLOCK_INSTANCE"
brightness=$(cat "$device/brightness")
max_brightness=$(cat "$device/max_brightness")
percent=$(( $brightness*100/$max_brightness ))
echo "$percent%"
|