dotfiles/motd.sh
2024-03-30 00:34:17 -07:00

5 lines
207 B
Bash
Executable file

echo
echo "Laptop battery: $(acpi | awk '{print $4,$3,$5,$6}')"
echo
echo "Backlight: $(brightnessctl g)/$(brightnessctl max) ($(echo "scale=2; $(brightnessctl g) / $(brightnessctl max) * 100" | bc)%)"
echo