Open 101Dude opened 1 year ago
Have you tried wrapping your output in pre tags? Something like this:
command: """
header() {
MYTIME="$(date "+%[%X%]")"
script_name=$(basename "$0" \
|tr '[:lower:]' '[:upper:]')
printf '%b\n' "${BK}${MYTIME} — ${script_name}" \
"$(ps -o pid,uid,time,pcpu,comm,xstat $$ |column -t)
${NC}"
}
header
""";
refreshFrequency: 60000
style: """
top: 10%;
left: 10px;
width: auto;
margin: auto;
pre {
text-align: left;
color: black
}
"""
render: (output) -> """
<pre>#{output}</pre>
"""
Just started using uebersicht. moving from GeekTool.
I have a shell script that has formatting built in. A bunch of functions that I call at the end of the script.
How can I pass the formatting through without uebersicht interfering?
An example. In this case the output
Using the same shell script - uebersicht on top and GeekTool on bottom. I am looking for output like I see from GeekTool