New branch + sway settings

This commit is contained in:
2025-10-28 14:23:36 +01:00
parent 764b3a7f53
commit 1986709251
4 changed files with 321 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/bin/bash
mem=$(free -h | awk '/Mem:/ {print $3 "/" $2}')
cpu=$(grep 'cpu ' /proc/stat | awk '{usage=($2+$4)*100/($2+$4+$5)} END {printf "%.1f%%", usage}')
bat=$(cat /sys/class/power_supply/macsmc-battery/capacity 2>/dev/null || echo "N/A")
time=$(date "+%d.%m %H:%M:%S")
echo "CPU: $cpu | MEM: $mem | BAT: $bat% | $time"