Making rofi prettier

This commit is contained in:
Chris Cochrun 2021-03-28 04:19:27 -05:00
parent 3b6d7cac88
commit a8b74e1f7b
2 changed files with 5 additions and 5 deletions

View file

@ -1,3 +1,3 @@
#!/usr/bin/env bash
#!/bin/sh
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)