From ded37b8f6515772648527fe2a3e9d9d490066ca0 Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Sat, 1 Oct 2022 00:56:51 +0530 Subject: minimizing scripts + replacing emojis for fonticons --- .scripts/cpu_py | 2 ++ 1 file changed, 2 insertions(+) create mode 100755 .scripts/cpu_py (limited to '.scripts/cpu_py') diff --git a/.scripts/cpu_py b/.scripts/cpu_py new file mode 100755 index 0000000..64edafe --- /dev/null +++ b/.scripts/cpu_py @@ -0,0 +1,2 @@ +#!/bin/sh +printf "%b" "import psutil\nprint('{}%'.format(psutil.cpu_percent(interval=2)))" | python3 | awk '{printf (" %2.1f%",($1))}' -- cgit v1.2.3