Added programs

Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
2021-03-22 21:27:54 +01:00
parent c1c92fc336
commit b82dc58f26
124 changed files with 18079 additions and 0 deletions

6
.local/bin/sb-cpu Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
print_cpu() {
cpuUse=$(top -bn1 | grep "Cpu(s)" | sed "s/.*, *\([0-9.]*\)%* id.*/\1/" | awk '{print int(100 - $1)"%"}')
echo -e "💻 $cpuUse"
}
print_cpu