swaydots

my dotfiles
git clone https://git.awy.one/swaydots.git
Log | Files | Refs | README | LICENSE

sb-cpu (403B)


      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   8) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
     10 esac
     11 
     12 sensors | awk '/Core 0/ {print "🌡" $3}'