scripts

scripts to make my pc work
Index Commits Files Refs
statusbar/sb-gpu (594B)
   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 ctemp=$(sensors | awk '/Package id/ {$4 = substr($4, 2, length($4) - 5); print $4}')
  13 # gtemp=$(sensors | awk '/edge/ {$2 = substr($2, 2, length($2) - 5); print $2}')
  14 
  15 # printf "🌡️ C$ctemp° G$gtemp°"
  16 printf "🌡️ $ctemp°"