updated a bunch

This commit is contained in:
2026-05-20 18:14:15 +02:00
parent 45fb878bd1
commit 8989c7927c
29 changed files with 680 additions and 514 deletions
+3 -3
View File
@@ -17,11 +17,11 @@ TIME=$(date "+%d.%m %H:%M")
#BRIGHT=$(echo "$(brightnessctl get) / 4.2" | bc)
VPN_STATUS=$(mullvad status 2>/dev/null | grep -q '^Connected' && echo UP || echo DOWN)
LAB_STATUS=$(ping -c1 -W1 192.168.0.200 >/dev/null 2>&1 && echo UP || echo DOWN )
#VPN_STATUS=$(mullvad status 2>/dev/null | grep -q '^Connected' && echo U || echo D)
LAB_STATUS=$(ping -c1 -W1 192.168.0.200 >/dev/null 2>&1 && echo U || echo D )
UPTIME=$(awk '{t=int($1); d=t/86400; h=(t%86400)/3600; m=(t%3600)/60; if(d>0) printf "%dd %02d:%02dh\n", d,h,m; else printf "%02d:%02dh\n", h,m}' /proc/uptime)
POWER=$(powerprofilesctl get | tr '[:lower:]' '[:upper:]')
echo "$USER | UPT: $UPTIME | POW: $POWER | LAB: $LAB_STATUS | VPN: $VPN_STATUS | CPU: $CPU | MEM: $MEM | BAT: $BAT | $TIME "
echo "$USER | UPT: $UPTIME | POW: $POWER | LAB: $LAB_STATUS | CPU: $CPU | MEM: $MEM | BAT: $BAT | $TIME "