Initial chezmoi commit
This commit is contained in:
8
dot_config/i3blocks/scripts/executable_cpu_usage
Normal file
8
dot_config/i3blocks/scripts/executable_cpu_usage
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
. "/home/kevin/.cache/wal/colors.sh"
|
||||
|
||||
idle="$(mpstat 1 1 -P ALL | sed -n -e '4{p;q}' | awk '{print $NF}')"
|
||||
used=$(echo 100 - "$idle" | bc)
|
||||
used_rounded=$(printf %.0f "$used")
|
||||
printf "%s%%\n\n%s\n" "$used_rounded" "$color7"
|
||||
Reference in New Issue
Block a user