clone of my dotfiles.ssp.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

add GPU check

sspaeti dc222daf 824fb221

+46
+44
hypr/.config/hypr/sspaeti/gpu-health-check
··· 1 + #!/bin/bash 2 + # Quick GPU health check - run before meetings to verify GPU state 3 + 4 + RED='\033[0;31m' 5 + GREEN='\033[0;32m' 6 + YELLOW='\033[0;33m' 7 + NC='\033[0m' 8 + 9 + echo "GPU Health Check" 10 + echo "================" 11 + 12 + # Check for critical GPU errors in current boot 13 + errors=$(journalctl -b -k 2>/dev/null | grep -E "(VPE.*(fail|reset)|IB.*(fail|test failed)|MES.*fail|amdgpu.*(reset|hang|error))" | grep -v "collaborate mode") 14 + 15 + if [ -z "$errors" ]; then 16 + echo -e "${GREEN}[OK]${NC} No GPU errors in current boot" 17 + else 18 + echo -e "${RED}[WARN]${NC} GPU errors detected:" 19 + echo "$errors" | head -5 20 + echo -e "${YELLOW}Recommendation: Reboot before your meeting${NC}" 21 + fi 22 + 23 + # Check GPU is responding 24 + if busy=$(cat /sys/class/drm/card*/device/gpu_busy_percent 2>/dev/null | head -1); then 25 + echo -e "${GREEN}[OK]${NC} GPU responding (${busy}% busy)" 26 + else 27 + echo -e "${RED}[FAIL]${NC} Cannot read GPU status" 28 + fi 29 + 30 + # Check VRAM 31 + if vram=$(cat /sys/class/drm/card*/device/mem_info_vram_used 2>/dev/null | head -1); then 32 + vram_mb=$((vram / 1024 / 1024)) 33 + echo -e "${GREEN}[OK]${NC} VRAM in use: ${vram_mb}MB" 34 + else 35 + echo -e "${YELLOW}[SKIP]${NC} VRAM info not available" 36 + fi 37 + 38 + # Summary 39 + echo "" 40 + if [ -z "$errors" ]; then 41 + echo -e "${GREEN}GPU is healthy - safe to start meeting${NC}" 42 + else 43 + echo -e "${RED}GPU may be unstable - consider rebooting${NC}" 44 + fi
+2
zsh/.dotfiles/zsh/aliases.shrc
··· 126 126 alias mscreener="~/.config/mutt/initial_screening.sh >> ~/.config/mutt/logs/screening.log 2>&1" 127 127 alias msync="offlineimap -a sspaeti.com" 128 128 129 + # Omarchy / hyprland 130 + alias gpu-check="~/.config/hypr/sspaeti/gpu-health-check" 129 131 130 132 # use open as on macOs to open pdf, videos, images, and directories (send output to dev and start in background for file manager (nautilus)) 131 133 open() { xdg-open "$@" &>/dev/null & }