toffset {
window -dhn +L @toffset $window(-1).w $window(-1).h 0 0
var %y = $calc($window(-1).w - $window(@toffset).x) $calc($window(-1).h - $window(@toffset).y)
close -@ @toffset
return %y
}
$toffset returns the x/y offset you need when you want to place a window in the lower right corner of your screen, but above/beside the taskbar.
I'm using this alias for my custom balloon tips. Works fine.
I guess it can easily be extended for other screen corners.
Hope this helps.
Edit: I might add this is the only way I know of to get the taskbar position/offset... if you know of another, better way let me know