top5_cpu_usage.sh 396 B

12345678910
  1. #!/usr/bin/env bash
  2. #       v                  
  3. #     🌐♬ 🌡 🖬  ⟳ ₿  ⮋⮉🡇 🡅 ⇓⇑      
  4. # dunstify -t 5000 "$(ps axch -o cmd:17,%mem --sort=-%mem | head -5)"
  5. notify-send -t 3000 "  CPU usage:
  6. $(ps axch -o cmd:17,%cpu --sort=-%cpu | head -5)"