Restructure files

This commit is contained in:
Marco Thomas
2021-04-03 11:58:19 +02:00
parent ede3bd8006
commit feb1d7b0be
21 changed files with 447 additions and 21 deletions

9
legacy/polybar/scripts/cpu.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
case "$1" in
--popup)
notify-send "CPU time (%)" "$(ps axch -o cmd:10,pcpu k -pcpu | head | awk '$0=$0"%"' )"
;;
*)
echo "$(grep 'cpu ' /proc/stat | awk '{cpu_usage=($2+$4)*100/($2+$4+$5)} END {printf "%0.2f%", cpu_usage}')"
;;
esac