repos/scripts

Simple scripts that I made for my personal computer to map keys, make bluetooth work, brightness keys, etc.
Commits Files Refs README LICENSE
statusbar/sb-gpu (16 lines)
   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 '/CPU:/ {$2 = substr($2, 2, length($2) - 5); print $2}')
  13 # gtemp=$(sensors | awk '/edge/ {$2 = substr($2, 2, length($2) - 5); print $2}')
  14 
  15 # printf "🌡️ C$ctemp° G$gtemp°"
  16 printf "🌡️ $ctemp°"C