aboutsummaryrefslogtreecommitdiff
path: root/i3blocks/i3brightness.sh
blob: 0347ae686fdea733bc0a583436cecbcf40b70de4 (plain)
1
2
3
4
5
#!/bin/sh

value=$(cat /sys/class/backlight/intel_backlight/brightness)
max=$(cat /sys/class/backlight/intel_backlight/max_brightness)
echo "☀️$(($(($value*100))/$max))%"