scripts

scripts to make my pc work
Index Commits Files Refs
statusbar/sb-cpu (391B)
   1 #!/bin/sh
   2 
   3 case $BLOCK_BUTTON in
   4     1) notify-send "🖥 CPU hogs" "$(ps axch -o cmd:15,%cpu --sort=-%cpu | head)\\n(100% per core)" ;;
   5     2) setsid -f "$TERMINAL" -e htop ;;
   6     3) notify-send "🖥 CPU module " "\- Shows CPU temperature.
   7 - Click to show intensive processes.
   8 - Middle click to open htop." ;;
   9     6) "$TERMINAL" -e "$EDITOR" "$0" ;;
  10 esac
  11 
  12 sensors | awk '/Core 0/ {print "🌡: " $3}'