mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-27 22:52:23 +00:00
8 lines
155 B
Text
8 lines
155 B
Text
|
#!/usr/bin/env bash
|
||
|
|
||
|
max=$(brightnessctl max)
|
||
|
current=$(brightnessctl get)
|
||
|
percentage=$(echo "scale=1; $current / $max * 100" | bc -l)
|
||
|
echo "$percentage"
|
||
|
|