dotfiles/config/sway/status.sh

16 lines
486 B
Bash
Executable File

#/bin/sh
#UPTIME=$(uptime | cut -d ',' -f1 | cut -d ' ' -f4,5)
UPTIME=$(uptime -p)
DATE=$(date +'%H.%M.%S %d.%m.%Y')
# Returns the battery status: "Full", "Discharging", or "Charging".
#BATTERY=$(cat /sys/class/power_supply/BAT0/status)
CPU=$(cat /proc/loadavg | cut -d ' ' -f1,2,3)
# Emojis and characters for the status bar
# 💎 💻 💡 🔌 ⚡ 📁 \|
#echo $uptime_formatted ↑ $linux_version 🐧 $battery_status 🔋 $date_formatted
echo $UPTIME \| load: $CPU \| $DATE