STATUS_FILE__ENERGY_NOTIFIED_BELLOW_HALF=$STATUS_DIR/notified_energy_bellow_half
DISK_IO_DEVICE='dm-1'
DISK_SPACE_DEVICE='/dev/mapper/kubuntu--vg-root'
+SCREEN_DEVICE='acpi_video0'
load=$(awk '{printf("%4.2f", $1)}' /proc/loadavg)
volume="($volume_pactl)"
screen_brightness=$(
- max=$(cat /sys/class/backlight/acpi_video0/max_brightness)
- cur=$(cat /sys/class/backlight/acpi_video0/brightness)
+ max=$(cat /sys/class/backlight/"$SCREEN_DEVICE"/max_brightness)
+ cur=$(cat /sys/class/backlight/"$SCREEN_DEVICE"/brightness)
awk -v max=$max -v cur=$cur 'BEGIN {printf("%d%%", cur/max*100)}'
)