dotfiles/linux/motd.sh
2024-03-30 00:44:27 -07:00

6 lines
265 B
Bash
Executable file

# be sure to append this file to your /etc/profile config
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