Reorganize Fedora dotfiles and remove legacy profile

This commit is contained in:
Mikhail Kilin
2026-07-25 12:38:39 +03:00
parent a601a53660
commit 6cb1d53a70
75 changed files with 2146 additions and 3974 deletions

View File

@@ -0,0 +1,11 @@
#!/bin/bash
data=$(nvidia-smi --query-gpu=utilization.gpu,temperature.gpu --format=csv,noheader,nounits 2>/dev/null)
if [ -z "$data" ]; then
printf '%s\n' '{"text":"N/A"}'
exit 0
fi
usage=$(printf '%s\n' "$data" | cut -d',' -f1 | tr -d ' ')
temp=$(printf '%s\n' "$data" | cut -d',' -f2 | tr -d ' ')
printf '{"text":"%s%% %sC"}\n' "$usage" "$temp"