#!/bin/bash

date_formatted=$(date +'%Y-%m-%d %H:%M')
battery=$(cat /sys/class/power_supply/BAT1/capacity)

echo "${battery}% ${date_formatted}"
