There's a thread about this but it's archived and I can't post on it. I'm currently using the method of anything time controlled by tics activates a #ts 30 trigger but I'd like to have it pay attention to my prompt so that I can be more accurate.
Erelei posted the following:
#action {~^.%1/%2(hp) %3/%4(mn) %5/%6(mv) %7tnl/%8cp/%9gl %10t/%11.$} { #if {"%10" != "$bg"} { #var bg %10; #var ltick 0; #ticker ltick {#math {ltick} {$ltick +1}} {1} }; #format lticks {%s%s} {$ltick} {s}; #var hpstuff2 %1(@pcnt{%1;%2}%)h %3(@pcnt{%3;%4}%)m %5(@pcnt{%5;%6}%)v - ($lticks); #var hpstuff %1(@percent{%1;%2}%)h %3(@percent{%3;%4}%)m %5(@percent{%5;%6}%)v - ($lticks); #var otstuff [%8] @time{%10} (%7TNL/$@gold{%9}K); #var otstuff2 [%8] @time{%10} (%7TNL/$@gold{%9}K); #var result2 %1(@percent{%1;%2}%)h %3(@percent{%3;%4}%)m %5(@percent{%5;%6}%)v $lticks ago > [%8] @time{%10} (%7TNL/$@gold{%9}K) ; #showme {@ralign{{$otstuff }{ $hpstuff}}} {1}}{9}
Now I get from the beginning that it's pulling info from when my prompt changes but how do I get it to match my prompt? I currently use:
%i - %l6%a%L - %l#%g%L - %l@%t%Ltime%c%n%P%l&%p%c%l9%h%L|%l9%H%L %l^%m%L|%l^%M %l7%v%L|%l7%V%c%l&%e%L%c
Looks like:
D - 0 - 5488 - 12time
274|274 333|333 266|266
Assuming I'd change code to something like:
#action {~^.%1 - %2 - %3 - $4time.$} { #if {"%4" != "$bg"} { #var bg %4; #var ltick 0; #ticker ltick {#math {ltick} {$ltick +1}} {1} }; #format lticks {%s%s} {$ltick} {s}; #var hpstuff2 %1(@pcnt{%1;%2}%)h %3(@pcnt{%3;%4}%)m %5(@pcnt{%5;%6}%)v - ($lticks); #var hpstuff %1(@percent{%1;%2}%)h %3(@percent{%3;%4}%)m %5(@percent{%5;%6}%)v - ($lticks); #var otstuff [%8] @time{%4} (%7TNL/$@gold{%9}K); #var otstuff2 [%8] @time{%4} (%7TNL/$@gold{%9}K); #var result2 %1(@percent{%1;%2}%)h %3(@percent{%3;%4}%)m %5(@percent{%5;%6}%)v $lticks ago > [%8] @time{%4} (%7TNL/$@gold{%9}K) ; #showme {@ralign{{$otstuff }{ $hpstuff}}} {1}}{9}
Not sure how to finish my prompt in it or if I even need to, or if I even did this right...or how to port but I can google that.
Any help is appreciated!
