#!/bin/sh # The abbreviated weekday (e.g., "Sat"), followed by the ISO-formatted date # like 2018-10-06 and the time (e.g., 14:01) date_formatted=$(date "+%a %F %H:%M") # Returns the battery status: "Full", "Discharging", or "Charging". battery_status=$(cat /sys/class/power_supply/BAT0/status) # Emojis and characters for the status bar # 💎 💻 💡 🔌 ⚡ 📁 \| echo $battery_status 🔋 $date_formatted