Adding libinput and some various changes

This commit is contained in:
Chris Cochrun 2021-05-28 20:27:26 -05:00
parent f7c99edabb
commit ed47a44b2b
14 changed files with 248 additions and 14 deletions

View file

@ -2,4 +2,6 @@
# awk '{u=$2+$4; t=$2+$4+$5; if (NR==1){u1=u; t1=t;} else print ($2+$4-u1) * 100 / (t-t1) "%"; }' \
# <(rg 'cpu ' /proc/stat) <(sleep 1;rg 'cpu ' /proc/stat)
# echo 100 - $(mpstat | rg all | cut -d \ -f43) | bc
mpstat 1 1 | rg Average | awk '{print $3+$4+$5}' | sed 's/\(.*\)/\1%/g'
cpu="$(mpstat 1 1 | rg Average | awk '{print $3+$4+$5}' | sed 's/\(.*\)/\1%/g')"
echo $cpu