12 lines
178 B
Bash
Executable file
12 lines
178 B
Bash
Executable file
#!/bin/sh
|
|
|
|
prefix=$1
|
|
suffix=$2
|
|
|
|
while [ true ]; do
|
|
echo -n "$prefix"
|
|
echo -n $(acpi --battery | cut -d, -f2 | tr -d ' ')
|
|
echo -n "$suffix"
|
|
echo
|
|
sleep 1s
|
|
done
|