dotfiles/.config/sway/status.sh

13 lines
417 B
Bash
Raw Normal View History

2020-03-08 12:53:35 +01:00
#!/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