Initial Red Hat laptop config commit

This commit is contained in:
2020-10-27 16:50:13 -04:00
parent 59794e9bdf
commit 15fad27d78
22 changed files with 320 additions and 75 deletions

View File

@@ -1,8 +1,7 @@
#!/bin/bash
. "/home/kevin/.cache/wal/colors.sh"
. "/home/$USER/.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"
printf " %s%%\n\n%s\n" "$used_rounded" "$color7"