I've made a small improvement to foopilot's autohide code - others might just find it useful. If you made autohide enabled by default (set first digit to "1" in !ok_phone_tweak_2.cfg string text), you've probably noticed that foopilot autohides each time you start foobar (because it is not focused).
Now, you might want to make foobar linger just a bit longer after it starts by changing the every first function hide(this) in hide.ski to this:
delay=380
function hide(this)
if delay>0 then
delay=delay-10
else
if alpha>0 then alpha=alpha-11 window_setAlpha(alpha)
elseif alpha<0 then alpha=0 window_setAlpha(alpha) look_setText(master_command,'pcr 0') end
end
end
Notice that it only delays autohide after foopilot's start. Regular autohide (after you, say, occasionally hovered your cursor over it or changed the volume and shifted your focus back to another window) has no delay, just as it was.
Another autohide tweak that might come handy is to make foopilot show again for a couple of seconds each time a new track starts - just to see what's playing now. For that you should change the sixth function onupdate (this) in hide.ski to this:
function onupdate (this)
if warunekdisable==false then
set_warunek (this)
if warunek then hide(this) else show(this) end
else
show(this)
if delay>0 then delay=delay-10
else warunekdisable=false end
end
end
and also intoduce a new function just next to it:
function onplaybacknewtrack(this)
warunekdisable=true
delay=380
end
and insert a new variable definition just below the fourth line of the original hide.ski:
warunekdisable=false