Update scripts. Added Pulse volume level

This commit is contained in:
Linux User
2022-08-18 21:21:42 +00:00
parent 219ddac852
commit 2547920d81
9 changed files with 21 additions and 0 deletions

8
.local/scripts/0030_cpu Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
COLOR1="#990057"
COLOR2="#FF00B2"
usage=$(cat <(grep 'cpu ' /proc/stat) <(sleep 0.3 && grep 'cpu ' /proc/stat) | awk -v RS="" '{print ($13-$2+$15-$4)*100/($13-$2+$15-$4+$16-$5)}' | cut -d'.' -f1)"%"
echo "^c$COLOR1^^b$COLOR2^  ^b$COLOR1^^c$COLOR2^ $usage ^d^"