mirror of
https://github.com/0intro/wmii
synced 2024-11-26 07:39:37 +03:00
merge
This commit is contained in:
commit
a46776cddc
14
rc/status
14
rc/status
@ -22,9 +22,13 @@ fn sigint {
|
||||
exit
|
||||
}
|
||||
|
||||
text=fnord
|
||||
while(wmiir write /bar/$label/data $"text >[2]/dev/null) {
|
||||
# if you need formatted date, use /bin/date instead
|
||||
text=(`{date} `{uptime | sed 's/.*://; s/,//g'})
|
||||
sleep 10
|
||||
fn statustext {
|
||||
# if you need a formatted date, use awk
|
||||
echo (`{date} `{uptime | sed 's/.*://; s/,//g'})
|
||||
}
|
||||
|
||||
text=`{statustext}
|
||||
while(wmir write /bar/$label/data $"text >[2]/dev/null) {
|
||||
text=`{statustext}
|
||||
sleep 2
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user