blob: 46f832b3f1ea9db184986744b6eb0ba71ac8f579 (
plain)
1
2
3
4
5
6
7
|
#!/bin/sh
case $BUTTON in
1) notify-send "$(ps axc -o cmd:15,%cpu --sort=-%cpu | head -6)";;
3) urxvt -e vim ~/.local/bin/statusbar/bar-cpu
esac
mpstat 1 1 | awk '/Average/ { printf "%.2f ",100-$12 }'
temp="$(sensors | awk '/Tctl/ { print $2 } ')"; echo -n ${temp#+}
|