dotfiles/config/sway/status.sh

15 lines
430 B
Bash
Raw Normal View History

#/bin/sh
2023-12-28 01:20:52 +02:00
#UPTIME=$(uptime -p)
DATE=$(date +'%H.%M.%S %d.%m.%Y')
2023-12-28 01:20:52 +02:00
CPU_TEMP=$(sensors -j | jq '.["k10temp-pci-00c3"].Tccd1.temp3_input')
GPU_TEMP=$(sensors -j | jq '.["amdgpu-pci-0300"].junction.temp2_input')
# 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)
2023-12-28 01:20:52 +02:00
echo C:$CPU_TEMP, G:$GPU_TEMP \| load: $CPU \| $DATE