23 lines
497 B
Bash
Executable file
23 lines
497 B
Bash
Executable file
#!/bin/bash
|
|
|
|
cpu() {
|
|
echo -n "^c#7ec7a2^^c#abb2bf^ $(grep -o "^[^ ]*" /proc/loadavg)"
|
|
}
|
|
|
|
mem() {
|
|
echo -n "^c#c7957e^^c#abb2bf^ $(free -h | awk '/^Mem/ { print $3 }' | sed s/i//g)"
|
|
}
|
|
|
|
clock() {
|
|
echo -n "^c#1e222a^^b#668ee3^ ^c#1e222a^^b#7aa2f7^ $(date '+%a | %x | %R') "
|
|
}
|
|
|
|
root() {
|
|
echo -n "^c#ad7ec7^^c#abb2bf^ $(df -h / | awk '{if ($1 != "Filesystem") print $4" free"}')"
|
|
}
|
|
|
|
while true; do
|
|
xsetroot -name "^c#cdff59^ $(root) $(cpu) $(mem) $(clock)"
|
|
sleep 10
|
|
done
|